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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    39,454
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    39,454

Package Sidebar

Install

npm i byt

Weekly Downloads

5,596

Version

0.1.0

License

BSD-2-Clause

Last publish

Collaborators

  • dstokes