{"_id":"byte-size","_rev":"4613149","name":"byte-size","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","dist-tags":{"latest":"9.0.1"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2026-04-10T18:09:24.000Z","created":"2014-06-07T21:11:41.702Z","9.0.1":"2024-12-06T00:06:10.732Z","9.0.0":"2024-07-20T19:03:43.197Z","8.2.1":"2024-07-20T18:53:36.763Z","8.2.0":"2024-07-20T18:45:32.814Z","8.1.1":"2023-05-03T14:42:14.585Z","8.1.0":"2021-08-17T12:43:53.072Z","8.0.0":"2021-07-04T13:21:09.018Z","7.0.1":"2021-03-04T22:43:53.231Z","7.0.0":"2020-05-27T10:44:40.182Z","6.2.0":"2019-10-27T23:54:43.900Z","6.1.0":"2019-10-25T20:32:14.747Z","6.0.0":"2019-09-22T15:46:03.587Z","5.0.1":"2018-12-21T23:21:57.293Z","5.0.0":"2018-12-21T22:50:26.640Z","4.0.4":"2018-10-18T19:09:01.704Z","4.0.3":"2018-05-12T22:58:36.307Z","4.0.2":"2017-07-06T12:29:38.655Z","4.0.1":"2017-06-26T20:51:23.399Z","4.0.0":"2017-06-21T18:49:33.740Z","3.0.0":"2016-08-26T20:24:28.176Z","2.0.0":"2015-10-03T22:15:20.161Z","1.0.1":"2015-07-20T08:17:11.646Z","1.0.0":"2015-07-20T08:10:06.674Z","0.1.0":"2014-06-07T21:11:41.702Z"},"users":{"f124275809":true,"jalik":true},"author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"versions":{"9.0.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"version":"9.0.1","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=12.17"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test-runner test*.js","docs":"75lb-nature jsdoc2md -t README.hbs index.js > README.md","dist":"75lb-nature cjs-build index.js"},"devDependencies":{},"standard":{"ignore":["dist"]},"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"_id":"byte-size@9.0.1","gitHead":"8b97a5798278422595caf42440833e598848eeba","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"7014b9f0e11ea732a8f2c21bef1cb8a78c6c55ff","size":5832,"noattachment":false,"key":"/byte-size/-/byte-size-9.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-9.0.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_9.0.1_1733443570507_0.6307344319139145"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-06T00:06:10.732Z","publish_time":1733443570732,"_source_registry_name":"default","_cnpm_publish_time":1733443570732},"9.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"9.0.0","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=12.17"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"test-runner --view.hide-skips test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","dist":"rollup -c"},"devDependencies":{"jsdoc-to-markdown":"^8.0.2","rollup":"^4.19.0","test-runner":"^0.11.0"},"standard":{"ignore":["dist"]},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"_id":"byte-size@9.0.0","gitHead":"ddcbed2c377d77043becdedc9f3ab73eeab91a0e","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"shasum":"ab0eaa699a5247d611ec806348ea4f1819a17d54","size":5796,"noattachment":false,"key":"/byte-size/-/byte-size-9.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-9.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_9.0.0_1721502223034_0.3481230447048407"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-20T19:03:43.197Z","publish_time":1721502223197,"_source_registry_name":"default","_cnpm_publish_time":1721502223197},"8.2.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"8.2.1","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=12.17"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"test-runner --view.hide-skips test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","dist":"rollup -c"},"devDependencies":{"jsdoc-to-markdown":"^8.0.2","rollup":"^4.19.0","test-runner":"^0.11.0"},"standard":{"ignore":["dist"]},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"_id":"byte-size@8.2.1","gitHead":"e4d9a4a70d78a0198e805c37fc075be72b84c09b","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"shasum":"b1adb6832a585994d33478f2031c12acbd8476b2","size":5803,"noattachment":false,"key":"/byte-size/-/byte-size-8.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-8.2.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_8.2.1_1721501616560_0.4582402324815953"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-20T18:53:36.763Z","publish_time":1721501616763,"_source_registry_name":"default","_cnpm_publish_time":1721501616763},"8.2.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"8.2.0","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=12.17"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"test-runner --view.hide-skips test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","dist":"rollup -c"},"devDependencies":{"jsdoc-to-markdown":"^8.0.2","rollup":"^4.19.0","test-runner":"^0.11.0"},"standard":{"ignore":["dist"]},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"_id":"byte-size@8.2.0","gitHead":"dce0e7b22462b96e4ed13dc01193cdf48ab26927","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"shasum":"d7da5f02023873701c5ea984c1ddbddec8a7af2f","size":5797,"noattachment":false,"key":"/byte-size/-/byte-size-8.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-8.2.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_8.2.0_1721501132659_0.07639100738884763"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-20T18:45:32.814Z","publish_time":1721501132814,"_source_registry_name":"default","_cnpm_publish_time":1721501132814},"8.1.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"8.1.1","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=12.17"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"npm run test:esm","test:esm":"test-runner --view.hide-skips test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","cover":"c8 npm test && c8 report --reporter=text-lcov | coveralls","dist":"rollup -c"},"devDependencies":{"jsdoc-to-markdown":"^8.0.0","rollup":"^3.21.3","test-runner":"^0.10.1"},"standard":{"ignore":["dist"]},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"gitHead":"b792ecbb5eab5377cb0153e0b6163f59e7f1bd73","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@8.1.1","_nodeVersion":"20.0.0","_npmVersion":"9.6.5","dist":{"shasum":"3424608c62d59de5bfda05d31e0313c6174842ae","size":5880,"noattachment":false,"key":"/byte-size/-/byte-size-8.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-8.1.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_8.1.1_1683124934443_0.9038697658098698"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-03T14:42:14.585Z","publish_time":1683124934585,"_source_registry_name":"default","_cnpm_publish_time":1683124934585},"8.1.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"8.1.0","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=12.17"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"npm run test:esm && npm run test:web","test:esm":"test-runner --view.hide-skips test.js","test:web":"web-runner --view.hide-skips test.js","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.js > README.md","cover":"c8 npm test && c8 report --reporter=text-lcov | coveralls","dist":"rollup -c"},"devDependencies":{"@test-runner/web":"^0.4.4","coveralls":"^3.1.1","isomorphic-assert":"^1.0.0","jsdoc-to-markdown":"^7.0.1","rollup":"^2.56.2","test-runner":"^0.9.8"},"standard":{"ignore":["dist"]},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"gitHead":"a0c6adb9ad20de3130f36ca2d9dd1f681c290813","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@8.1.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.6","dist":{"shasum":"6353d0bc14ab7a69abcefbf11f8db0145a862cb5","size":5951,"noattachment":false,"key":"/byte-size/-/byte-size-8.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-8.1.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_8.1.0_1629204232916_0.9114905466740535"},"_hasShrinkwrap":false,"publish_time":1629204233072,"_cnpm_publish_time":1629204233072},"8.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"8.0.0","description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"exports":{"import":"./index.mjs","require":"./dist/index.cjs"},"license":"MIT","engines":{"node":">=14"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:esm && npm run test:web","test:esm":"test-runner --view.hide-skips test.mjs","test:web":"web-runner test.mjs","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","cover":"c8 npm test && c8 report --reporter=text-lcov | coveralls","dist":"rollup -c"},"devDependencies":{"@rollup/plugin-node-resolve":"^13.0.0","@test-runner/web":"^0.4.1","coveralls":"^3.1.1","isomorphic-assert":"^0.2.0","jsdoc-to-markdown":"^7.0.1","rollup":"^2.52.7","test-runner":"^0.9.6"},"standard":{"ignore":["dist"]},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"gitHead":"712a890413f09a4170edf372d5a8173bfb413562","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@8.0.0","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"shasum":"2b3a1679b26326a15918a64c59bc35e56439cabd","size":5905,"noattachment":false,"key":"/byte-size/-/byte-size-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-8.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_8.0.0_1625404868885_0.7858206131589511"},"_hasShrinkwrap":false,"publish_time":1625404869018,"_cnpm_publish_time":1625404869018},"7.0.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"7.0.1","main":"dist/index.js","license":"MIT","engines":{"node":">=10"},"description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:esm && npm run test:web","test:esm":"esm-runner test.mjs","test:web":"web-runner test.mjs","docs":"jsdoc2md -t README.hbs dist/index.js > README.md","cover":"c8 npm test && c8 report --reporter=text-lcov | coveralls","dist":"rollup -f umd -n byteSize -o dist/index.js index.mjs"},"devDependencies":{"@test-runner/web":"^0.3.5","coveralls":"^3.1.0","esm-runner":"^0.3.4","isomorphic-assert":"^0.1.1","jsdoc-to-markdown":"^7.0.0","rollup":"^2.40.0","test-object-model":"^0.6.1"},"standard":{"ignore":["dist"]},"gitHead":"29d1cdc6a1876150175b24d292b62d7dc2fbbfd4","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@7.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"shasum":"b1daf3386de7ab9d706b941a748dbfc71130dee3","size":5523,"noattachment":false,"key":"/byte-size/-/byte-size-7.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-7.0.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_7.0.1_1614897833015_0.18575940616367226"},"_hasShrinkwrap":false,"publish_time":1614897833231,"_cnpm_publish_time":1614897833231},"7.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"7.0.0","main":"dist/index.js","license":"MIT","engines":{"node":">=10"},"description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && npm run test:esm && npm run test:web","test:esm":"esm-runner test.mjs","test:web":"web-runner test.mjs","docs":"jsdoc2md -t README.hbs dist/index.js > README.md","cover":"c8 npm test && c8 report --reporter=text-lcov | coveralls","dist":"rollup -f umd -n byteSize -o dist/index.js index.mjs"},"devDependencies":{"@test-runner/web":"^0.3.4","coveralls":"^3.1.0","esm-runner":"^0.3.4","isomorphic-assert":"^0.1.1","jsdoc-to-markdown":"^5.0.3","rollup":"^2.10.9","test-object-model":"^0.6.1"},"standard":{"ignore":["dist"]},"gitHead":"b4f774cb42673f8d5084995dc32fcc48d8e0ff78","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@7.0.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.4","dist":{"shasum":"36528cd1ca87d39bd9abd51f5715dc93b6ceb032","size":5513,"noattachment":false,"key":"/byte-size/-/byte-size-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-7.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_7.0.0_1590576280050_0.9797366742155238"},"_hasShrinkwrap":false,"publish_time":1590576280182,"_cnpm_publish_time":1590576280182},"6.2.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"6.2.0","main":"dist/index.js","license":"MIT","engines":{"node":">=8"},"description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -t README.hbs dist/index.js > README.md","cover":"nyc npm test && nyc report --reporter=text-lcov | coveralls","dist":"rollup -f umd -n byteSize -o dist/index.js index.mjs"},"devDependencies":{"coveralls":"^3.0.7","jsdoc-to-markdown":"^5.0.2","nyc":"^14.1.1","rollup":"^1.26.0","test-runner":"^0.6.0"},"standard":{"ignore":["dist"]},"gitHead":"a2eec40730301ea4fd41f11bcb3e14faf91390c1","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@6.2.0","_nodeVersion":"12.12.0","_npmVersion":"6.12.0","dist":{"shasum":"39fd52adedbbf7e8c3b3f7dea05e441549375c28","size":5386,"noattachment":false,"key":"/byte-size/-/byte-size-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-6.2.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_6.2.0_1572220483762_0.4013844924790986"},"_hasShrinkwrap":false,"publish_time":1572220483900,"_cnpm_publish_time":1572220483900},"6.1.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"6.1.0","main":"dist/index.js","license":"MIT","engines":{"node":">=8"},"description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -t README.hbs dist/index.js > README.md","cover":"nyc npm test && nyc report --reporter=text-lcov | coveralls","dist":"rollup -f umd -n byteSize -o dist/index.js index.mjs"},"devDependencies":{"coveralls":"^3.0.7","jsdoc-to-markdown":"^5.0.2","nyc":"^14.1.1","rollup":"^1.25.2","test-runner":"^0.6.0"},"standard":{"ignore":["dist"]},"gitHead":"b39b88bf138d423079d0f5a86f7e58a1b063dfc6","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@6.1.0","_nodeVersion":"12.12.0","_npmVersion":"6.12.0","dist":{"shasum":"f1e3c229ca4e40d5fdac57a7ef2ba0f4fe1912c5","size":4770,"noattachment":false,"key":"/byte-size/-/byte-size-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-6.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_6.1.0_1572035534640_0.24379757601727148"},"_hasShrinkwrap":false,"publish_time":1572035534747,"_cnpm_publish_time":1572035534747},"6.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"6.0.0","main":"dist/index.js","license":"MIT","engines":{"node":">=8"},"description":"Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -t README.hbs dist/index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls","dist":"rollup -f umd -n byteSize -o dist/index.js index.mjs"},"devDependencies":{"coveralls":"^3.0.6","jsdoc-to-markdown":"^5.0.1","rollup":"^1.21.4","test-runner":"^0.6.0"},"gitHead":"c2f6726a7b429734ef78d59c5f03ecdb8aca4876","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@6.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"shasum":"52e9553a18c65026cc81db3f6f4629a8f9a282d4","size":4241,"noattachment":false,"key":"/byte-size/-/byte-size-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-6.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_6.0.0_1569167163430_0.8941448747187428"},"_hasShrinkwrap":false,"publish_time":1569167163587,"_cnpm_publish_time":1569167163587},"5.0.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"5.0.1","main":"dist/index.js","license":"MIT","engines":{"node":">=6.0.0"},"description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run test:js && npm run test:mjs","test:js":"rollup -c dist/test.config.js && node dist/test.js","test:mjs":"node --experimental-modules test/test.mjs","docs":"jsdoc2md -t README.hbs dist/index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls","dist":"rollup -c dist/index.config.js"},"devDependencies":{"coveralls":"^3.0.2","jsdoc-to-markdown":"^4.0.1","rollup":"^0.68.1","test-runner":"^0.5.1"},"gitHead":"cf571784448df3f5ab9263b31ff444e47b261899","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@5.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"4b651039a5ecd96767e71a3d7ed380e48bed4191","size":4318,"noattachment":false,"key":"/byte-size/-/byte-size-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-5.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_5.0.1_1545434517187_0.5194722610707767"},"_hasShrinkwrap":false,"publish_time":1545434517293,"_cnpm_publish_time":1545434517293},"5.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"5.0.0","main":"dist/index.js","license":"MIT","engines":{"node":">=6.0.0"},"description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"npm run test:js && npm run test:mjs","test:js":"rollup -c dist/test.config.js && node dist/test.js","test:mjs":"node --experimental-modules test/test.mjs","docs":"jsdoc2md -t README.hbs dist/index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls","dist":"rollup -c dist/index.config.js"},"devDependencies":{"coveralls":"^3.0.2","jsdoc-to-markdown":"^4.0.1","rollup":"^0.68.1","test-runner":"^0.5.1"},"gitHead":"7e984b131285b4340738237925e4e65c810285d1","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@5.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"04c10a57091f8864c603606da996fa80606948d4","size":4286,"noattachment":false,"key":"/byte-size/-/byte-size-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-5.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_5.0.0_1545432626489_0.7040411349207283"},"_hasShrinkwrap":false,"publish_time":1545432626640,"_cnpm_publish_time":1545432626640},"4.0.4":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"4.0.4","license":"MIT","engines":{"node":">4.0.0"},"description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"devDependencies":{"coveralls":"^3.0.2","jsdoc-to-markdown":"^4.0.1","test-runner":"^0.5.1"},"gitHead":"7f39dd6c274e018c67ce8b1c89ffe4fa20bedd29","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@4.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"29d381709f41aae0d89c631f1c81aec88cd40b23","size":3329,"noattachment":false,"key":"/byte-size/-/byte-size-4.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-4.0.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_4.0.4_1539889741529_0.581893829147311"},"_hasShrinkwrap":false,"publish_time":1539889741704,"_cnpm_publish_time":1539889741704},"4.0.3":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"4.0.3","license":"MIT","description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"files":["index.js"],"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"devDependencies":{"coveralls":"^3.0.1","jsdoc-to-markdown":"^4.0.1","test-runner":"^0.5.0"},"gitHead":"8da8841e935892b8715bb4c495099fc27c697f34","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@4.0.3","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"b7c095efc68eadf82985fccd9a2df43a74fa2ccd","size":3280,"noattachment":false,"key":"/byte-size/-/byte-size-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-4.0.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_4.0.3_1526165916158_0.5768306735182147"},"_hasShrinkwrap":false,"publish_time":1526165916307,"_cnpm_publish_time":1526165916307},"4.0.2":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"4.0.2","license":"MIT","description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"files":["index.js"],"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","test-runner":"^0.4.0"},"gitHead":"fe96604cb3c3aeaac28b5372c3204abc64441632","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@4.0.2","_npmVersion":"5.0.4","_nodeVersion":"8.1.3","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"e8ddbf7161913965c6af5b236a4bed8896bdc83e","size":3425,"noattachment":false,"key":"/byte-size/-/byte-size-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-4.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size-4.0.2.tgz_1499344177641_0.3683331902138889"},"directories":{},"publish_time":1499344178655,"_cnpm_publish_time":1499344178655,"_hasShrinkwrap":false},"4.0.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"4.0.1","license":"MIT","description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","test-runner":"^0.4.0"},"gitHead":"5e0292385a46cd36529da1e325f5ce05a4854cee","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@4.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"59b2f8277277e1e538fee1e4d02b0ddd82fb09c6","size":13541,"noattachment":false,"key":"/byte-size/-/byte-size-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-4.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size-4.0.1.tgz_1498510282420_0.07384323887526989"},"directories":{},"publish_time":1498510283399,"_cnpm_publish_time":1498510283399,"_hasShrinkwrap":false},"4.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"4.0.0","license":"MIT","description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","test-runner":"^0.4.0"},"gitHead":"a78e6299fc213a2aad4970f9edbb1f5932d1b2ee","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@4.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"1b6c23d9b2a0eaa6a4c11e6313b815c099323db7","size":13529,"noattachment":false,"key":"/byte-size/-/byte-size-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-4.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size-4.0.0.tgz_1498070972788_0.6942172511480749"},"directories":{},"publish_time":1498070973740,"_hasShrinkwrap":false,"_cnpm_publish_time":1498070973740},"3.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"3.0.0","license":"MIT","description":"Convert a bytes (and octets) value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"main":"./lib/byte-size.js","keywords":["convert","bytes","octet","size","human","readable","metric","IEC"],"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"devDependencies":{"core-assert":"^0.2.0","coveralls":"^2.11.12","jsdoc-to-markdown":"^2.0.0-alpha","test-runner":"^0.2.3"},"gitHead":"0a909a00c1fdf07f3b1f40b625ea7f7523bd1d1e","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@3.0.0","_shasum":"406f9e2366aa5dabf63672eb291d7bb09495da75","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"406f9e2366aa5dabf63672eb291d7bb09495da75","size":4019,"noattachment":false,"key":"/byte-size/-/byte-size-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-3.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/byte-size-3.0.0.tgz_1472243066370_0.6628933511674404"},"directories":{},"publish_time":1472243068176,"_cnpm_publish_time":1472243068176,"_hasShrinkwrap":false},"2.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"2.0.0","license":"MIT","description":"Convert a bytes value to a more human-readable format. Choose between metric or IEC units.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"main":"./lib/byte-size.js","keywords":["convert","bytes","size","human","readable","metric","IEC"],"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4"},"gitHead":"023ac6ff7faa76b79509b061c40a77bf89a35518","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@2.0.0","_shasum":"c348281fc777080c084e36f267f41f6a5042f04f","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.1.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"c348281fc777080c084e36f267f41f6a5042f04f","size":3119,"noattachment":false,"key":"/byte-size/-/byte-size-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1443910520161,"_cnpm_publish_time":1443910520161,"_hasShrinkwrap":false},"1.0.1":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"1.0.1","license":"MIT","description":"Convert a value in bytes to a more human-readable size.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"main":"./lib/byte-size.js","keywords":["convert","bytes","size","human","readable"],"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4"},"gitHead":"246b75ff6df0080e155a8add3a2878b81af6fa61","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@1.0.1","_shasum":"cd9ad1d19d4cdbb809e5e623b6e71508d7344bfe","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"cd9ad1d19d4cdbb809e5e623b6e71508d7344bfe","size":2308,"noattachment":false,"key":"/byte-size/-/byte-size-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1437380231646,"_cnpm_publish_time":1437380231646,"_hasShrinkwrap":false},"1.0.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"contributors":[{"name":"Raul Perez","email":"repejota@gmail.com","url":"http://repejota.com"}],"version":"1.0.0","license":"MIT","description":"Convert a value in bytes to a more human-readable size.","repository":{"type":"git","url":"git+https://github.com/75lb/byte-size.git"},"main":"./lib/byte-size.js","keywords":["convert","bytes","size","human","readable"],"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4"},"gitHead":"80f3756fd045daf43c78ecffa951636ee3bbd738","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size#readme","_id":"byte-size@1.0.0","_shasum":"4112837a74381c05548fe013febdb7d22cda4438","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"4112837a74381c05548fe013febdb7d22cda4438","size":2198,"noattachment":false,"key":"/byte-size/-/byte-size-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1437379806674,"_cnpm_publish_time":1437379806674,"_hasShrinkwrap":false},"0.1.0":{"name":"byte-size","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"Convert a value in bytes to a more human-readable size.","repository":{"type":"git","url":"https://github.com/75lb/byte-size.git"},"main":"./lib/byte-size.js","keywords":["convert","bytes","size","human","readable"],"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"tape":"^2.13.2"},"gitHead":"d6792f8c05e668d70d19e0f6a33443d51a046c63","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"homepage":"https://github.com/75lb/byte-size","_id":"byte-size@0.1.0","_shasum":"3bb99a42bc41cf3906586bf8347762fcae75bd57","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"3bb99a42bc41cf3906586bf8347762fcae75bd57","size":1515,"noattachment":false,"key":"/byte-size/-/byte-size-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-size/download/byte-size-0.1.0.tgz"},"directories":{},"publish_time":1402175501702,"_cnpm_publish_time":1402175501702,"_hasShrinkwrap":false}},"readme":"[![view on npm](https://badgen.net/npm/v/byte-size)](https://www.npmjs.org/package/byte-size)\n[![npm module downloads](https://badgen.net/npm/dt/byte-size)](https://www.npmjs.org/package/byte-size)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/byte-size)](https://github.com/75lb/byte-size/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/byte-size)](https://github.com/75lb/byte-size/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/byte-size/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/byte-size/actions/workflows/node.js.yml)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n***Upgraders, please check the [release notes](https://github.com/75lb/byte-size/releases).***\n\n# byte-size\n\nAn isomorphic, load-anywhere function to convert a bytes value (e.g. `3456`) to a human-readable string (`'3.5 kB'`). Choose between [metric or IEC units](https://en.wikipedia.org/wiki/Gigabyte) (summarised below) or specify your own custom units.\n\nValue  | Metric        | Metric (octet) |\n-----  | ------------- | -------------- |\n1000   | kB  kilobyte  | ko  kilooctet  |\n1000^2 | MB  megabyte  | Mo  megaoctet  |\n1000^3 | GB  gigabyte  | Go  gigaoctet  |\n1000^4 | TB  terabyte  | To  teraoctet  |\n1000^5 | PB  petabyte  | Po  petaoctet  |\n1000^6 | EB  exabyte   | Eo  exaoctet   |\n1000^7 | ZB  zettabyte | Zo  zettaoctet |\n1000^8 | YB  yottabyte | Yo  yottaoctet |\n\nValue  | IEC          | IEC (octet)   |\n------ | ------------ | ------------- |\n1024   | KiB kibibyte | Kio kibioctet |\n1024^2 | MiB mebibyte | Mio mebioctet |\n1024^3 | GiB gibibyte | Gio gibioctet |\n1024^4 | TiB tebibyte | Tio tebioctet |\n1024^5 | PiB pebibyte | Pio pebioctet |\n1024^6 | EiB exbibyte | Eio exbioctet |\n1024^7 | ZiB zebibyte | Zio zebioctet |\n1024^8 | YiB yobibyte | Yio yobioctet |\n\n## Synopsis\n\nBy default, `byteSize` converts the input number to a human readable string with metric units and a precision of 1.\n\n```js\n> const byteSize = require('byte-size')\n\n> byteSize(1580)\n{ value: '1.6', unit: 'kB', long: 'kilobytes' }\n```\n\nThe object returned by `byteSize` defines a `toString` method therefore can be used directly in string context.\n\n```js\n> `Filesize: ${byteSize(12400)}`\n'Filesize: 12.4 kB'\n```\n\nOverride the default `toString` behaviour by setting [`options.toStringFn`](#bytesizebytes-options--object-).\n\n```js\n> function toStringFn () {\n  return `**${this.value}${this.unit}**`\n}\n\n> `Filesize: ${byteSize(12400, { toStringFn })}`\n'Filesize: **12.4kB**'\n```\n\nBeside the default of `metric`, there are three other built-in units available: `metric_octet`, `iec` and `iec_octet`.\n\n```js\n> byteSize(1580, { units: 'iec' })\n{ value: '1.5', unit: 'KiB', long: 'kibibytes' }\n\n> byteSize(1580, { units: 'iec_octet' })\n{ value: '1.5', unit: 'Kio', long: 'kibioctets' }\n\n> byteSize(1580, { units: 'metric_octet' })\n{ value: '1.6', unit: 'ko', long: 'kilooctets' }\n```\n\nYou can adjust the `precision`.\n\n```js\n> byteSize(1580, { units: 'iec', precision: 3 })\n{ value: '1.543', unit: 'KiB', long: 'kibibytes' }\n\n> byteSize(1580, { units: 'iec', precision: 0 })\n{ value: '2', unit: 'KiB', long: 'kibibytes' }\n```\n\nDefine custom units by passing an object containing one or more additional conversion tables to `options.customUnits`. In `options.units`, specify the name of a property from the `customUnits` object.\n\n```js\n> const customUnits = {\n  simple: [\n    { from: 0   , to: 1e3 , unit: ''  },\n    { from: 1e3 , to: 1e6 , unit: 'K', long: 'thousand' },\n    { from: 1e6 , to: 1e9 , unit: 'Mn', long: 'million' },\n    { from: 1e9 , to: 1e12, unit: 'Bn', long: 'billion' }\n  ]\n}\n\n> const { value, unit } = byteSize(10000, { customUnits, units: 'simple' })\n\n> `${value}${unit}`\n'10.0K'\n```\n\nOverride the built-in defaults for the duration of the process by passing an options object to `byteSize.defaultOptions()`. This results in cleaner code in cases where `byteSize` is used often with the same options.\n\n```js\n> byteSize.defaultOptions({\n  units: 'simple',\n  precision: 2,\n  customUnits: {\n    simple: [\n      { from: 0, to: 1e3, unit: '' },\n      { from: 1e3, to: 1e6, unit: 'k' },\n      { from: 1e6, to: 1e9, unit: 'm' },\n      { from: 1e9, to: 1e12, unit: 'bn' },\n    ]\n  },\n  toStringFn: function () {\n    return this.value + this.unit\n  }\n})\n\n> [2400, 16400, 3991200].map(byteSize).join(', ')\n'2.40k, 16.40k, 3.99m'\n```\n\n<a name=\"module_byte-size\"></a>\n\n## byte-size\n\n* [byte-size](#module_byte-size)\n    * [byteSize(bytes, [options])](#exp_module_byte-size--byteSize) ⇒ <code>object</code> ⏏\n        * [.defaultOptions(options)](#module_byte-size--byteSize.defaultOptions)\n\n<a name=\"exp_module_byte-size--byteSize\"></a>\n\n### byteSize(bytes, [options]) ⇒ <code>object</code> ⏏\nReturns an object with the spec `{ value: string, unit: string, long: string }`. The returned object defines a `toString` method meaning it can be used in any string context.\n\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| bytes | <code>number</code> | The bytes value to convert. |\n| [options] | <code>object</code> | Optional config. |\n| [options.precision] | <code>number</code> | Number of decimal places. Defaults to `1`. |\n| [options.units] | <code>string</code> | Specify `'metric'`, `'iec'`, `'metric_octet'`, `'iec_octet'` or the name of a property from the custom units table in `options.customUnits`. Defaults to `metric`. |\n| [options.customUnits] | <code>object</code> | An object containing one or more custom unit lookup tables. |\n| [options.toStringFn] | <code>function</code> | A `toString` function to override the default. |\n| [options.locale] | <code>string</code> \\| <code>Array.&lt;string&gt;</code> | *Node >=13 or modern browser only - on earlier platforms this option is ignored*. The locale to use for number formatting (e.g. `'de-DE'`). Defaults to your system locale. Passed directed into [Intl.NumberFormat()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat). |\n\n<a name=\"module_byte-size--byteSize.defaultOptions\"></a>\n\n#### byteSize.defaultOptions(options)\nSet the default `byteSize` options for the duration of the process.\n\n**Kind**: static method of [<code>byteSize</code>](#exp_module_byte-size--byteSize)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| options | <code>object</code> | A `byteSize` options object. |\n\n\n## Load anywhere\n\nThis library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.\n\nNode.js (CommonJS):\n\n```js\nconst byteSize = require('byte-size')\n```\n\nNode.js (ECMAScript Module):\n\n```js\nimport byteSize from 'byte-size'\n```\n\nWithin a modern browser ECMAScript Module:\n\n```js\nimport byteSize from './node_modules/byte-size/index.js'\n```\n\nBrowser global (adds `window.byteSize`):\n\n```html\n<script src=\"./node_modules/byte-size/dist/index.js\"></script>\n```\n\n* * *\n\n&copy; 2014-25 [Lloyd Brookes](https://github.com/75lb) \\<opensource@75lb.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/byte-size#readme","bugs":{"url":"https://github.com/75lb/byte-size/issues"},"license":"MIT"}