Skip to content

coderaiser/trammel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trammel License NPM version Build Status

Get directory size.

If you want get realtime size updates use dirsize.

Example

import trammel from 'trammel';

await trammel('.');
// returns
'58.47kb';

await trammel('.', {
    type: 'raw',
});

// returns
59_974;

await trammel('do not exist', {
    stopOnError: true,
});

// throws
Error;

License

MIT

About

Get directory size for node

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published