Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
/ du-multi.js Public archive

Node.js wrapper for linux "du" command. Used to list usage of folders of a directory.

License

Notifications You must be signed in to change notification settings

nodecraft/du-multi.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

du-multi.js

Node.js wrapper for linux "du" command. Used to list usage of folders of a directory.

Install

$ npm install du-multi

Usage

Pass a directory as the first argument, a size type as an optional second argument, and then a callback function. Size type can be 'kb', 'mb', 'gb', etc. or simply 'h' for human readable. The default size type is 'h', and can be emitted entirely if needed.

var du = require('du-multi');

du('/home', 'm', function(err, output) {
    if (err) {throw err;}
    console.log(output);  // array returned containing size info and dirs
});

About

Node.js wrapper for linux "du" command. Used to list usage of folders of a directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published