SkillAgentSearch skills...

Trammel

Get directory size for node

Install / Use

/learn @coderaiser/Trammel
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated2y ago
Forks0

Languages

JavaScript

Security Score

75/100

Audited on Mar 18, 2024

No findings