3.0.1 • Published 8 years ago
du-wrapper v3.0.1
Wrapper 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);
});