Properties
Static type
type: "browser" | "node"
Static workdir
workdir: string
Methods
Static basename
- basename(pathStr: string): string
-
Parameters
Returns string
Static deleteDirectory
- deleteDirectory(dir: string): Promise<{}>
-
Parameters
Returns Promise<{}>
Static deleteFile
- deleteFile(dir: string, file: string): Promise<{}>
-
Parameters
Returns Promise<{}>
Static directory
- directory(file: string): string
-
Parameters
Returns string
Static dirname
- dirname(pathStr: string): string
-
Parameters
Returns string
Static fileExist
- fileExist(pathStr: string): boolean
-
Parameters
Returns boolean
Static filename
- filename(pathStr: string): string
-
Parameters
Returns string
Static getEnvVariable
- getEnvVariable(name: string): any
-
Parameters
Returns any
Static getGlobalVariable
-
Returns any
Static getHostFileContent
- getHostFileContent(): string
-
Returns string
Static getHostPath
-
Returns string
Static isAbsolute
- isAbsolute(pathStr: string): boolean
-
Parameters
Returns boolean
Static isDir
- isDir(pathStr: string): boolean
-
Parameters
Returns boolean
Static isFile
- isFile(pathStr: string): boolean
-
Parameters
Returns boolean
Static join
- join(...args: string[]): string
-
Parameters
Returns string
Static load
-
Parameters
Returns any
Static mkdir
- mkdir(targetDir: string, sep?: string): boolean
-
Parameters
-
targetDir: string
-
Optional sep: string
Returns boolean
Static pathExtname
- pathExtname(pathStr: string, dotted?: boolean): string
-
Parameters
-
pathStr: string
-
Optional dotted: boolean
Returns string
Static pathNormAndResolve
- pathNormAndResolve(pathStr: string): string
-
Parameters
Returns string
Static pathNormalize
- pathNormalize(pathStr: string): string
-
Parameters
Returns string
Static pathNormilize
- pathNormilize(pathStr: string): string
-
Parameters
Returns string
Static pathResolve
- pathResolve(pathStr: string): string
-
Parameters
Returns string
Static pathResolveAndNormalize
- pathResolveAndNormalize(pathStr: string): string
-
Parameters
Returns string
Static readFile
- readFile(filename: string): Promise<Buffer>
-
Parameters
Returns Promise<Buffer>
Static readFileSync
- readFileSync(filename: string): Buffer
-
Parameters
Returns Buffer
Static setWorkDir
- setWorkDir(workdir: string): void
-
Parameters
Returns void
Static testForFilePath
- testForFilePath(path: string): boolean
-
Parameters
Returns boolean
Static withoutInterpolation
- withoutInterpolation(str: string, fn: (str: string) => string): string
-
Parameters
-
str: string
-
fn: (str: string) => string
-
-
Parameters
Returns string
Returns string
Platform-specific tools.