Properties
Static _GLOB
_GLOB: any
Methods
Static _getGlob
-
Returns any
Static deleteFile
- deleteFile(dir: string, file: string): Promise<{}>
-
Parameters
Returns Promise<{}>
Static getJson
- getJson(filepath: string): Promise<any>
-
Parameters
Returns Promise<any>
Static getJsonSync
- getJsonSync(filepath: string): any
-
Parameters
Returns any
Static glob
- glob(lib_path: string): Promise<string[]>
-
Parameters
Returns Promise<string[]>
Static readFile
- readFile(filename: string): Promise<Buffer>
-
Parameters
Returns Promise<Buffer>
Static readFileSync
- readFileSync(filename: string): Buffer
-
Parameters
Returns Buffer
Static writeFile
- writeFile(filename: string, content: string | Buffer, options?: WriteFileOptions): Promise<void>
-
Parameters
-
filename: string
-
content: string | Buffer
-
Optional options: WriteFileOptions
Returns Promise<void>
Static writeFileSync
- writeFileSync(filename: string, content: string | Buffer, options?: WriteFileOptions): void
-
Parameters
-
filename: string
-
content: string | Buffer
-
Optional options: WriteFileOptions
Returns void