du-wrapper

3.0.1 • Public • Published

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);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i du-wrapper

Weekly Downloads

1

Version

3.0.1

License

MIT

Last publish

Collaborators

  • phelm