Convert arbitrary unit strings into byte counts.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

byt

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