trammel

    5.0.0 • Public • Published

    Trammel License NPM version Dependency Status 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

    Keywords

    none

    Install

    npm i trammel

    DownloadsWeekly Downloads

    861

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    7.47 kB

    Total Files

    5

    Last publish

    Collaborators

    • coderaiser