External module utils/node-async
Functions
asBuffer
- asBuffer(val: string | Buffer): Buffer
-
Parameters
Returns Buffer
Normalized Buffer
value.
asSysPath
- asSysPath(pathLike: string | URL): string
-
Parameters
Returns string
execFile
-
Parameters
-
file: string
-
args: string[]
-
readText
- readText(file: string | URL): Promise<string>
-
Parameters
Returns Promise<string>
writeText
- writeText(file: string | URL, text: string): Promise<void>
-
Parameters
-
file: string | URL
-
text: string
Returns Promise<void>
Helpers to spawn processes and manipulate them as promises.