Skip to content

1.0.1

Compare
Choose a tag to compare
@yduman yduman released this 18 Aug 17:00
· 21 commits to master since this release

Changed

  • Making use of fs.promises instead of promisify
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;