byt

    0.1.0 • Public • Published

    byte

    Convert arbitrary unit strings into byte counts.

    Build Status
    NPM

    example

    var b = require('byt');
     
    b(1024);   // => 1024
    b('1k');   // => 1024
    b('2.5m'); // => 2621440
    b('1GB');  // => 1073741824

    install

    With npm do:

    npm install byt
    

    Keywords

    none

    Install

    npm i byt

    DownloadsWeekly Downloads

    12,175

    Version

    0.1.0

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • dstokes