12 lines
339 B
JavaScript
12 lines
339 B
JavaScript
import _fs from "fs";
|
|
export const nodeFs = {
|
|
readFile: _fs.promises.readFile,
|
|
readFileSync: _fs.readFileSync,
|
|
writeFile: (f, d)=>_fs.promises.writeFile(f, d),
|
|
mkdir: (dir)=>_fs.promises.mkdir(dir, {
|
|
recursive: true
|
|
}),
|
|
stat: (f)=>_fs.promises.stat(f)
|
|
};
|
|
|
|
//# sourceMappingURL=node-fs-methods.js.map
|