Filesystem methods as promises with fs-extra
var fsp = ;fsp;
fs-extramethods exposing them as ES 2015 (ES6) compatible promises.
fs-extrato resolve Promise as arrays of items.
Promise implementation using
any-promise. If you have a preferred implementation, or are working in an environment without a global implementation, you must explicitly register a
Promise implementation and it will be used. See
any-promise for details.
$ npm install --save fs-promise
fs-extra depends on
graceful-fs, so you will get the benefits of both libraries.