UNPKG

fsep

Version:

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

13 lines (10 loc) 293 B
const Fsep = require('../index'); const Path = require('path'); const path = Path.join(__dirname, 'rw/blue/white/t.txt'); Promise.resolve().then(function () { return Fsep.readFile(path); }).then(function (result) { console.log(result); }).catch(function (error) { console.log(error); });