New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

trammel

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trammel

Get size of directory

latest
Source
npmnpm
Version
6.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 18 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts