du-wrapper
v1.0.1Wrapper around DU command, returns a promise.
returns size of dir in KB
let du = require('./index');
let path = __dirname;
du(path)
.then((res) => {
console.log(res); // res = 174 (KB)
})
.catch((err) => {
console.log(err);
});