@kismet.ts/util / Exports
@kismet.ts/util
Table of contents
Classes
Interfaces
Functions
Functions
createDirectory
▸ createDirectory(path
, options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
path | string |
options? | ICreateDirectoryOptions |
Returns
Promise
<void
>
Defined in
readJSONFile
▸ readJSONFile<T
>(path
, encoding?
): T
Read and parse a JSON file.
Type parameters
Name |
---|
T |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
path | string | undefined | The path of the JSON file |
encoding | BufferEncoding | 'utf8' | The encoding to use |
Returns
T
Defined in
resolvePath
▸ resolvePath(path
): undefined
| string
Parameters
Name | Type |
---|---|
path | string |
Returns
undefined
| string