@kismet.ts/util / Exports

@kismet.ts/util

Table of contents

Classes

Interfaces

Functions

Functions

createDirectory

createDirectory(path, options?): Promise<void>

Parameters

NameType
pathstring
options?ICreateDirectoryOptions

Returns

Promise<void>

Defined in

files.ts:35open in new window


readJSONFile

readJSONFile<T>(path, encoding?): T

Read and parse a JSON file.

Type parameters

Name
T

Parameters

NameTypeDefault valueDescription
pathstringundefinedThe path of the JSON file
encodingBufferEncoding'utf8'The encoding to use

Returns

T

Defined in

files.ts:11open in new window


resolvePath

resolvePath(path): undefined | string

Parameters

NameType
pathstring

Returns

undefined | string

Defined in

files.ts:21open in new window