Variable nodeFilesystemConst
nodeFilesystem: {
fs: {
exists: ((path: string) => boolean);
readFile: ((path: string, encoding?: BufferEncoding) => string);
writeFile: ((path: string, contents: string | Buffer, encoding?: BufferEncoding) => void);
};
} = ...
Type declaration
-
fs: {
exists: ((path: string) => boolean);
readFile: ((path: string, encoding?: BufferEncoding) => string);
writeFile: ((path: string, contents: string | Buffer, encoding?: BufferEncoding) => void);
}
-
exists: ((path: string) => boolean)
-
- (path: string): boolean
-
Returns boolean
-
readFile: ((path: string, encoding?: BufferEncoding) => string)
-
- (path: string, encoding?: BufferEncoding): string
-
Parameters
-
path: string
-
encoding: BufferEncoding = 'utf-8'
Returns string
-
writeFile: ((path: string, contents: string | Buffer, encoding?: BufferEncoding) => void)
-
- (path: string, contents: string | Buffer, encoding?: BufferEncoding): void
-
Parameters
-
path: string
-
contents: string | Buffer
-
encoding: BufferEncoding = 'utf-8'
Returns void
Filesystem abstraction.
Property
Filesystem.
Property
Reads a file.
Property
Writes a file.
Property
Checks if a file exists.
Remarks
I have no idea why this is here. (blame Synapse devs)