UNPKG

fsep

Version:

Fsep is a library that promisifies the native node FS operation and brings extras into the mix.

13 lines (10 loc) 278 B
const Fsep = require('../index'); const Path = require('path'); const path = Path.join(__dirname, 'rw/blue'); Promise.resolve().then(function () { return Fsep.emptyFolder(path); }).then(function () { console.log('done'); }).catch(function (error) { console.log(error); });