Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    du-syncpublic

    node-du

    Use native Node.js fs API to calculate directory size (du -sh implementation)

    (sync version)

    Install

    npm install du-sync
    

    Synopsis

    var du = require("du-sync")
    var filesize = require("filesize")
     
    var dirsize = du("path/to/your/folder")
     
    // or 
    var dirsize = du.readSizeRecursiveSync("path/to/your/folder")
     
    console.log( filesize(dirsize) )

    Keywords

    none

    install

    npm i du-sync

    Downloadsweekly downloads

    1

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar