Interface: FS

Hierarchy

  • FS

Properties

Optional dirname

dirname? : undefined | function

Defined in fs/fs.ts:15


exists

exists: function

Defined in fs/fs.ts:3

Type declaration:

▸ (filepath: string): Promise‹boolean›

Parameters:

Name Type
filepath string

existsSync

existsSync: function

Defined in fs/fs.ts:5

Type declaration:

▸ (filepath: string): boolean

Parameters:

Name Type
filepath string

Optional fallback

fallback? : undefined | function

Defined in fs/fs.ts:17


readFile

readFile: function

Defined in fs/fs.ts:7

Type declaration:

▸ (filepath: string): Promise‹string›

Parameters:

Name Type
filepath string

readFileSync

readFileSync: function

Defined in fs/fs.ts:9

Type declaration:

▸ (filepath: string): string

Parameters:

Name Type
filepath string

resolve

resolve: function

Defined in fs/fs.ts:11

Type declaration:

▸ (dir: string, file: string, ext: string): string

Parameters:

Name Type
dir string
file string
ext string

Optional sep

sep? : undefined | string

Defined in fs/fs.ts:13