1.0.1
Changed
- Making use of
fs.promises
instead ofpromisify
import fs from "fs";
- import { promisify } from "util";
- export const readdir = promisify(fs.readdir);
+ export const readdir = fs.promises.readdir;
- export const stat = promisify(fs.stat);
+ export const stat = fs.promises.stat;
- export const unlink = promisify(fs.unlink);
+ export const unlink = fs.promises.unlink;