Interface SomePromiseBasedFs
Methods
readFile
- readFile(path: string, encoding: "utf8"): Promise<string>
-
Parameters
-
path: string
-
encoding: "utf8"
Returns Promise<string>
readdir
- readdir(path: string, options?: null | (BaseEncodingOptions & { withFileTypes?: undefined | false }) | "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"): Promise<string[]>
-
Parameters
-
path: string
-
Optional options: null | (BaseEncodingOptions & { withFileTypes?: undefined | false }) | "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"
Returns Promise<string[]>
Everything confyglot needs from the fs.