Variables
Const readFileAsync
• readFileAsync: function = _.promisify<string, string, string>(nodeReadFile)
Defined in fs/node.ts:6
Type declaration:
▸ (arg1: T1, arg2: T2): Promise‹T3›
Parameters:
| Name | Type |
|---|---|
arg1 |
T1 |
arg2 |
T2 |
Const statAsync
• statAsync: function = _.promisify(stat)
Defined in fs/node.ts:5
Type declaration:
▸ (arg1: T1): Promise‹T2›
Parameters:
| Name | Type |
|---|---|
arg1 |
T1 |
Functions
exists
▸ exists(filepath: string): Promise‹boolean›
Defined in fs/node.ts:8
Parameters:
| Name | Type |
|---|---|
filepath |
string |
Returns: Promise‹boolean›
existsSync
▸ existsSync(filepath: string): boolean
Defined in fs/node.ts:14
Parameters:
| Name | Type |
|---|---|
filepath |
string |
Returns: boolean
fallback
▸ fallback(file: string): undefined | string
Defined in fs/node.ts:29
Parameters:
| Name | Type |
|---|---|
file |
string |
Returns: undefined | string
readFile
▸ readFile(filepath: string): Promise‹string›
Defined in fs/node.ts:11
Parameters:
| Name | Type |
|---|---|
filepath |
string |
Returns: Promise‹string›
readFileSync
▸ readFileSync(filepath: string): string
Defined in fs/node.ts:22
Parameters:
| Name | Type |
|---|---|
filepath |
string |
Returns: string
resolve
▸ resolve(root: string, file: string, ext: string): string
Defined in fs/node.ts:25
Parameters:
| Name | Type |
|---|---|
root |
string |
file |
string |
ext |
string |
Returns: string