bytes-to-x
Convert from bytes to another unit e.g. Mibit, KiB, Gibit, Gib
Table of Contents
Install
This project uses node and npm.
$ npm install bytes-to-x$ # OR $ yarn add bytes-to-x
Usage
const converters = console// { toBits: [Function],// toGibibits: [Function],// toGibibytes: [Function],// toGigabits: [Function],// toGigabytes: [Function],// toKibibits: [Function],// toKibibytes: [Function],// toKilobits: [Function],// toKilobytes: [Function],// toMebibits: [Function],// toMegabits: [Function],// toMegabytes: [Function],// toPetabits: [Function],// toPetabytes: [Function],// toTerabits: [Function],// toTerabytes: [Function] } console // 8.000 bconsole // 8 bconsole // b 8console // 0.000000007450581 Gibitconsole // 0.000000000931323 Gibconsole // 0.000000008000000 Gbconsole // 0.007812500000000 Kibitconsole // 0.001 KiBconsole // 0.008 kbconsole // 0.001 kBconsole // 0.000 GBconsole // 0.008 kbconsole // 0.000007629394531 Mibitconsole // 0.000008000000000 Mbconsole // 0.000001000000000 MBconsole // 0.000000000000001 PBconsole // 0.000000000008000 Tbconsole // // 0.000000000001000 TB
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT