{"_id":"pretty-bytes","_rev":"4207467","name":"pretty-bytes","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","dist-tags":{"latest":"7.1.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-03-04T17:04:05.000Z","created":"2014-02-09T17:27:09.124Z","7.1.0":"2025-09-21T07:36:56.073Z","7.0.1":"2025-08-12T05:37:59.148Z","7.0.0":"2025-04-29T11:06:04.462Z","6.1.1":"2023-07-16T09:33:04.049Z","6.1.0":"2023-02-04T08:14:54.309Z","6.0.0":"2022-02-13T18:17:05.542Z","5.6.0":"2021-02-21T14:04:35.036Z","5.5.0":"2020-12-23T07:19:05.421Z","5.4.1":"2020-08-31T09:15:11.997Z","5.4.0":"2020-08-29T09:53:50.615Z","5.3.0":"2019-07-26T20:25:30.480Z","5.2.0":"2019-04-24T03:27:35.924Z","5.1.0":"2018-06-07T15:14:27.969Z","5.0.0":"2018-05-06T19:14:44.879Z","4.0.2":"2016-08-28T10:50:03.722Z","4.0.1":"2016-08-27T15:02:23.847Z","4.0.0":"2016-08-26T21:56:59.553Z","3.0.1":"2016-02-05T02:18:46.539Z","3.0.0":"2015-12-17T22:06:07.468Z","2.0.1":"2015-05-21T16:20:35.196Z","2.0.0":"2015-05-20T21:05:29.095Z","1.0.4":"2015-03-25T10:52:34.667Z","1.0.3":"2015-02-16T17:58:54.915Z","1.0.2":"2014-12-07T16:39:39.287Z","1.0.1":"2014-08-12T23:32:04.210Z","1.0.0":"2014-08-09T23:23:25.480Z","0.1.2":"2014-07-18T20:32:46.962Z","0.1.1":"2014-04-30T22:44:08.892Z","0.1.0":"2014-02-09T17:27:09.124Z"},"users":{"jamescostian":true,"maxogden":true,"quanlong":true,"feross":true,"taterbase":true,"kikobeats":true,"pedroparra":true,"jerkovicl":true,"itonyyo":true,"kemitchell":true,"shivapoudel":true,"allain":true,"theodor.lindekaer":true,"lokua":true,"pluma":true,"nichoth":true,"sqrtthree":true,"danielbankhead":true,"abdihaikal":true,"martinkock":true,"mkoc":true,"jlertle":true,"recursion_excursion":true,"noyobo":true,"rochejul":true,"h0ward":true,"rocket0191":true,"ognjen.jevremovic":true,"scytalezero":true,"ccastelli":true,"kytart":true,"zuojiang":true,"vboctor":true,"jalik":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"versions":{"7.1.0":{"name":"pretty-bytes","version":"7.1.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^6.2.0","tsd":"^0.32.0","xo":"^0.60.0"},"_id":"pretty-bytes@7.1.0","gitHead":"b7849f7632461fe2b08a81a3a0e1eae3113dbe36","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_nodeVersion":"20.19.5","_npmVersion":"10.9.2","dist":{"shasum":"d788c9906241dbdcd4defab51b6d7470243db9bd","size":4666,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-7.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-7.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pretty-bytes_7.1.0_1758440215841_0.9152838543024224"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-21T07:36:56.073Z","publish_time":1758440216073,"_source_registry_name":"default","_cnpm_publish_time":1758440216073},"7.0.1":{"name":"pretty-bytes","version":"7.0.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^6.2.0","tsd":"^0.32.0","xo":"^0.60.0"},"_id":"pretty-bytes@7.0.1","gitHead":"3c77fd1de9bad0594ae9db4516337e62d4e0b01f","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"24100e03ff1cd911900bf0149183e49e58a737d8","size":3939,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-7.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-7.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pretty-bytes_7.0.1_1754977078996_0.9852587853103725"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-12T05:37:59.148Z","publish_time":1754977079148,"_source_registry_name":"default","_cnpm_publish_time":1754977079148},"7.0.0":{"name":"pretty-bytes","version":"7.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^6.2.0","tsd":"^0.32.0","xo":"^0.60.0"},"_id":"pretty-bytes@7.0.0","gitHead":"2658a8e2de01c17fe41f0f64bd41556af1726544","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"shasum":"8652cbf0aa81daeeaf72802e0fd059e5e1046cdb","size":3882,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pretty-bytes_7.0.0_1745924764289_0.014256418138773874"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-29T11:06:04.462Z","publish_time":1745924764462,"_source_registry_name":"default","_cnpm_publish_time":1745924764462},"6.1.1":{"name":"pretty-bytes","version":"6.1.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^4.0.1","tsd":"^0.19.1","xo":"^0.54.0"},"gitHead":"71d686a4cefb314c13b57107de5add5789753900","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@6.1.1","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"38cd6bb46f47afbf667c202cfc754bffd2016a3b","size":3617,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-6.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-6.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_6.1.1_1689499983854_0.6940508571320902"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-16T09:33:04.049Z","publish_time":1689499984049,"_source_registry_name":"default","_cnpm_publish_time":1689499984049},"6.1.0":{"name":"pretty-bytes","version":"6.1.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^4.0.1","tsd":"^0.19.1","xo":"^0.48.0"},"gitHead":"8ee1403a1dea3058005365e07c3a0be2366dce4c","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@6.1.0","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"1d1cc9aae1939012c74180b679da6684616bf804","size":3624,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-6.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_6.1.0_1675498494110_0.5129719972568312"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-04T08:14:54.309Z","publish_time":1675498494309,"_cnpm_publish_time":1675498494309},"6.0.0":{"name":"pretty-bytes","version":"6.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^4.0.1","tsd":"^0.19.1","xo":"^0.48.0"},"gitHead":"40430a6ba8c5f1130a96a5093272930e15d96255","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@6.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"shasum":"928be2ad1f51a2e336add8ba764739f9776a8140","size":3531,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_6.0.0_1644776225316_0.6278141465703748"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-13T18:17:15.405Z","publish_time":1644776225542,"_cnpm_publish_time":1644776225542},"5.6.0":{"name":"pretty-bytes","version":"5.6.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"cdb25d5db75dcc442b747325c5ae0e85875831aa","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.6.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"356256f643804773c82f64723fe78c92c62beaeb","size":3815,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.6.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.6.0_1613916274910_0.6691659440992714"},"_hasShrinkwrap":false,"publish_time":1613916275036,"_cnpm_publish_time":1613916275036},"5.5.0":{"name":"pretty-bytes","version":"5.5.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"1e4e21c0b0736757bade4f397883357efcdbcff7","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.5.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0cecda50a74a941589498011cf23275aa82b339e","size":3471,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.5.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.5.0_1608707945274_0.6424421728514533"},"_hasShrinkwrap":false,"publish_time":1608707945421,"_cnpm_publish_time":1608707945421},"5.4.1":{"name":"pretty-bytes","version":"5.4.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"f5c147c101b8279a3d7fd01171ee1000f6e76066","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.4.1","_nodeVersion":"10.22.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cd89f79bbcef21e3d21eb0da68ffe93f803e884b","size":3465,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.4.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.4.1_1598865311894_0.6227609405459087"},"_hasShrinkwrap":false,"publish_time":1598865311997,"_cnpm_publish_time":1598865311997},"5.4.0":{"name":"pretty-bytes","version":"5.4.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"1000ebed9048c1a78ac9514193492bc2c36798f6","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.4.0","_nodeVersion":"10.22.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b5efc2638cfc0a5e8c369bb0418abb4b386c7c6d","size":3426,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.4.0_1598694830466_0.13089678039587938"},"_hasShrinkwrap":false,"publish_time":1598694830615,"_cnpm_publish_time":1598694830615},"5.3.0":{"name":"pretty-bytes","version":"5.3.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && NODE_ICU_DATA=node_modules/full-icu ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^1.4.1","full-icu":"^1.2.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"50f9fdb6bdddf968eb476dfdff02ab19b1ee7ade","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.3.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f2849e27db79fb4d6cfe24764fc4134f165989f2","size":3168,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.3.0_1564172730332_0.7055314586591601"},"_hasShrinkwrap":false,"publish_time":1564172730480,"_cnpm_publish_time":1564172730480},"5.2.0":{"name":"pretty-bytes","version":"5.2.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && NODE_ICU_DATA=node_modules/full-icu ava && tsd"},"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"^1.4.1","full-icu":"^1.2.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"face5d939f0ac57070e652f5f39bc3d4db8dbd2e","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"96c92c6e95a0b35059253fb33c03e260d40f5a1f","size":2963,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.2.0_1556076455745_0.4474951030547505"},"_hasShrinkwrap":false,"publish_time":1556076455924,"_cnpm_publish_time":1556076455924},"5.1.0":{"name":"pretty-bytes","version":"5.1.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && NODE_ICU_DATA=node_modules/full-icu ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"*","full-icu":"^1.2.1","xo":"*"},"gitHead":"9db9f7d0f8d8105329055bd02f33fcf9581e7aff","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.1.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6237ecfbdc6525beaef4de722cc60a58ae0e6c6d","size":2658,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.1.0_1528384467879_0.10335868470826903"},"_hasShrinkwrap":false,"publish_time":1528384467969,"_cnpm_publish_time":1528384467969},"5.0.0":{"name":"pretty-bytes","version":"5.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && NODE_ICU_DATA=node_modules/full-icu ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data","locale","localization","localized"],"devDependencies":{"ava":"*","full-icu":"^1.2.1","xo":"*"},"gitHead":"11b08e0b44ba662a18b84c5fd4f643581d87e2f2","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@5.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6af1d7cc56c597a3b07db480797d6bfa78a3179e","size":2545,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-bytes_5.0.0_1525634084791_0.8611495339983042"},"_hasShrinkwrap":false,"publish_time":1525634084879,"_cnpm_publish_time":1525634084879},"4.0.2":{"name":"pretty-bytes","version":"4.0.2","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"6c64218b1c117468521e2d4c0e95e91dfd0412eb","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@4.0.2","_shasum":"b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9","size":1868,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-4.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pretty-bytes-4.0.2.tgz_1472381402662_0.5705222117248923"},"directories":{},"publish_time":1472381403722,"_cnpm_publish_time":1472381403722,"_hasShrinkwrap":false},"4.0.1":{"name":"pretty-bytes","version":"4.0.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"895f38c57020cea4ef722cf5c9c175fdacccf543","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@4.0.1","_shasum":"748ade208951551f8d624f896f49d5fb78587276","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"748ade208951551f8d624f896f49d5fb78587276","size":1861,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-4.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pretty-bytes-4.0.1.tgz_1472310142889_0.6373185319826007"},"directories":{},"publish_time":1472310143847,"_cnpm_publish_time":1472310143847,"_hasShrinkwrap":false},"4.0.0":{"name":"pretty-bytes","version":"4.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"a33a033580a0a2c8b808f67acae2643e3402b6d3","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@4.0.0","_shasum":"b8883c5333752f295c069056995e9bc0946a3577","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b8883c5333752f295c069056995e9bc0946a3577","size":1863,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pretty-bytes-4.0.0.tgz_1472248617837_0.4962275540456176"},"directories":{},"publish_time":1472248619553,"_cnpm_publish_time":1472248619553,"_hasShrinkwrap":false},"3.0.1":{"name":"pretty-bytes","version":"3.0.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"number-is-nan":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7880c0805ea4647455a95ee899d0da1b5f175e0f","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@3.0.1","_shasum":"27d0008d778063a0b4811bb35c79f1bd5d5fbccf","_from":".","_npmVersion":"3.7.0","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"27d0008d778063a0b4811bb35c79f1bd5d5fbccf","size":1893,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/pretty-bytes-3.0.1.tgz_1454638724444_0.6657163200434297"},"directories":{},"publish_time":1454638726539,"_cnpm_publish_time":1454638726539,"_hasShrinkwrap":false},"3.0.0":{"name":"pretty-bytes","version":"3.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/pretty-bytes"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"number-is-nan":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"1038116bb48d1c9764ab1d8f9a47e175a74d75b0","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@3.0.0","_shasum":"ba6b142d5ef2137a542b89f2856345d56a27583d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ba6b142d5ef2137a542b89f2856345d56a27583d","size":1880,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1450389967468,"_cnpm_publish_time":1450389967468,"_hasShrinkwrap":false},"2.0.1":{"name":"pretty-bytes","version":"2.0.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/pretty-bytes"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bin":{"pretty-bytes":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli-app","cli","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^4.0.1","meow":"^3.1.0","number-is-nan":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"6c88dbf3ad51f7ffaf9dd1fec1a5f19f366a6a31","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@2.0.1","_shasum":"155ec4d0036f41391e7045d6dbe4963d525d264f","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"155ec4d0036f41391e7045d6dbe4963d525d264f","size":2191,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432225235196,"_cnpm_publish_time":1432225235196,"_hasShrinkwrap":false},"2.0.0":{"name":"pretty-bytes","version":"2.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pretty-bytes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bin":{"pretty-bytes":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli-app","cli","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^4.0.1","meow":"^3.1.0","number-is-nan":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"c1fe1afa1c2e32aa984ca08c72f610acc7eb69a3","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","_id":"pretty-bytes@2.0.0","_shasum":"7750cf64ed1fc8cddc7fc89c6beee39137aeee98","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7750cf64ed1fc8cddc7fc89c6beee39137aeee98","size":2191,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432155929095,"_cnpm_publish_time":1432155929095,"_hasShrinkwrap":false},"1.0.4":{"name":"pretty-bytes","version":"1.0.4","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^4.0.1","meow":"^3.1.0"},"devDependencies":{"mocha":"*"},"gitHead":"a1028d746f5aa51cdd6a22f1cae2b2e9ecc5b6df","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@1.0.4","_shasum":"0a22e8210609ad35542f8c8d5d2159aff0751c84","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"0a22e8210609ad35542f8c8d5d2159aff0751c84","size":2312,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-1.0.4.tgz"},"directories":{},"publish_time":1427280754667,"_cnpm_publish_time":1427280754667,"_hasShrinkwrap":false},"1.0.3":{"name":"pretty-bytes","version":"1.0.3","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^4.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"1d7df8380d568929533ae04be1c3bdb19134659f","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@1.0.3","_shasum":"03a712d028cfc8536f271da55e1844877399242c","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"03a712d028cfc8536f271da55e1844877399242c","size":2369,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-1.0.3.tgz"},"directories":{},"publish_time":1424109534915,"_cnpm_publish_time":1424109534915,"_hasShrinkwrap":false},"1.0.2":{"name":"pretty-bytes","version":"1.0.2","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"c5be24e2b88b90c481cc5c94626b04a9d2fd03ff","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@1.0.2","_shasum":"b38f90c0b93d9942a4c4bec6cb5f367d51d80120","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"b38f90c0b93d9942a4c4bec6cb5f367d51d80120","size":1669,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-1.0.2.tgz"},"directories":{},"publish_time":1417970379287,"_cnpm_publish_time":1417970379287,"_hasShrinkwrap":false},"1.0.1":{"name":"pretty-bytes","version":"1.0.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"c09553ec8deee748c1a248b028427d45ac88ee5a","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@1.0.1","_shasum":"afd0b459da61834ac36617b05f9daa0beb043e3e","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"afd0b459da61834ac36617b05f9daa0beb043e3e","size":1669,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-1.0.1.tgz"},"directories":{},"publish_time":1407886324210,"_cnpm_publish_time":1407886324210,"_hasShrinkwrap":false},"1.0.0":{"name":"pretty-bytes","version":"1.0.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"dependencies":{"get-stdin":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"53c522d9895e4c2a9f5d8ab529739822b46f8809","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@1.0.0","_shasum":"b8755fac2ff8570b06ddd2095c02373e9c349093","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"b8755fac2ff8570b06ddd2095c02373e9c349093","size":1643,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-1.0.0.tgz"},"directories":{},"publish_time":1407626605480,"_cnpm_publish_time":1407626605480,"_hasShrinkwrap":false},"0.1.2":{"name":"pretty-bytes","version":"0.1.2","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@0.1.2","_shasum":"cd90294d58a1ca4e8a5d0fb9c8225998881acf00","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"cd90294d58a1ca4e8a5d0fb9c8225998881acf00","size":1545,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-0.1.2.tgz"},"directories":{},"publish_time":1405715566962,"_cnpm_publish_time":1405715566962,"_hasShrinkwrap":false},"0.1.1":{"name":"pretty-bytes","version":"0.1.1","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@0.1.1","dist":{"shasum":"c99fc780053e49397155295f2fd1a196e8c3937a","size":1507,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398897848892,"_cnpm_publish_time":1398897848892,"_hasShrinkwrap":false},"0.1.0":{"name":"pretty-bytes","version":"0.1.0","description":"Convert bytes to a human readable string: 1337 → 1.34 kB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/pretty-bytes"},"main":"pretty-bytes.js","bin":{"pretty-bytes":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["pretty-bytes.js","cli.js"],"keywords":["cli","bin","browser","pretty","bytes","byte","filesize","size","file","human","humanized","readable","si","data"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"homepage":"https://github.com/sindresorhus/pretty-bytes","_id":"pretty-bytes@0.1.0","dist":{"shasum":"2cad1cdd7838fe59018ae5e0ccf7cae741942f8e","size":1596,"noattachment":false,"key":"/pretty-bytes/-/pretty-bytes-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty-bytes/download/pretty-bytes-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1391966829124,"_hasShrinkwrap":false,"_cnpm_publish_time":1391966829124}},"readme":"# pretty-bytes\n\n> Convert bytes to a human readable string: `1337` → `1.34 kB`\n\nUseful for displaying file sizes for humans.\n\n*Note that it uses base-10 (e.g. kilobyte).\n[Read about the difference between kilobyte and kibibyte.](https://web.archive.org/web/20150324153922/https://pacoup.com/2009/05/26/kb-kb-kib-whats-up-with-that/)*\n\n## Install\n\n```sh\nnpm install pretty-bytes\n```\n\n## Usage\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\nprettyBytes(1337);\n//=> '1.34 kB'\n\nprettyBytes(100);\n//=> '100 B'\n\n// Display with units of bits\nprettyBytes(1337, {bits: true});\n//=> '1.34 kbit'\n\n// Display file size differences\nprettyBytes(42, {signed: true});\n//=> '+42 B'\n\n// Localized output using German locale\nprettyBytes(1337, {locale: 'de'});\n//=> '1,34 kB'\n\n// Fixed width for alignment (useful for progress bars and tables)\nprettyBytes(1337, {fixedWidth: 8});\n//=> ' 1.34 kB'\n```\n\n## API\n\n### prettyBytes(number, options?)\n\n#### number\n\nType: `number | bigint`\n\nThe number to format.\n\n#### options\n\nType: `object`\n\n##### signed\n\nType: `boolean`\\\nDefault: `false`\n\nInclude plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment.\n\n##### bits\n\nType: `boolean`\\\nDefault: `false`\n\nFormat the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate).\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\nprettyBytes(1337, {bits: true});\n//=> '1.34 kbit'\n```\n\n##### binary\n\nType: `boolean`\\\nDefault: `false`\n\nFormat the number using the [Binary Prefix](https://en.wikipedia.org/wiki/Binary_prefix) instead of the [SI Prefix](https://en.wikipedia.org/wiki/SI_prefix). This can be useful for presenting memory amounts. However, this should not be used for presenting file sizes.\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\nprettyBytes(1000, {binary: true});\n//=> '1000 B'\n\nprettyBytes(1024, {binary: true});\n//=> '1 KiB'\n```\n\n##### locale\n\nType: `boolean | string | string[]`\\\nDefault: `false`\n\n- If `false`: Output won't be localized.\n- If `true`: Localize the output using the system/browser locale.\n- If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …)\n- If `string[]`: Expects a list of [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …)\n\n> [!IMPORTANT]\n> Only the number and decimal separator are localized. The unit title is not and will not be localized.\n\n##### minimumFractionDigits\n\nType: `number`\\\nDefault: `undefined`\n\nThe minimum number of fraction digits to display.\n\nIf neither `minimumFractionDigits` nor `maximumFractionDigits` is set, the default behavior is to round to 3 significant digits.\n\n> [!NOTE]\n> When `minimumFractionDigits` or `maximumFractionDigits` is specified, values are truncated instead of rounded to provide more intuitive results for file sizes.\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\n// Show the number with at least 3 fractional digits\nprettyBytes(1900, {minimumFractionDigits: 3});\n//=> '1.900 kB'\n\nprettyBytes(1900);\n//=> '1.9 kB'\n```\n\n##### maximumFractionDigits\n\nType: `number`\\\nDefault: `undefined`\n\nThe maximum number of fraction digits to display.\n\nIf neither `minimumFractionDigits` nor `maximumFractionDigits` is set, the default behavior is to round to 3 significant digits.\n\n> [!NOTE]\n> When `minimumFractionDigits` or `maximumFractionDigits` is specified, values are truncated instead of rounded to provide more intuitive results for file sizes.\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\n// Show the number with at most 1 fractional digit\nprettyBytes(1920, {maximumFractionDigits: 1});\n//=> '1.9 kB'\n\nprettyBytes(1920);\n//=> '1.92 kB'\n```\n\n##### space\n\nType: `boolean`\\\nDefault: `true`\n\nPut a space between the number and unit.\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\nprettyBytes(1920, {space: false});\n//=> '1.92kB'\n\nprettyBytes(1920);\n//=> '1.92 kB'\n```\n\n##### nonBreakingSpace\n\nType: `boolean`\\\nDefault: `false`\n\nUse a non-breaking space instead of a regular space to prevent the unit from wrapping to a new line.\n\nHas no effect when `space` is `false`.\n\n##### fixedWidth\n\nType: `number`\\\nDefault: `undefined`\n\nPad the output to a fixed width by right-aligning it.\n\nUseful for creating aligned columns in tables or progress bars.\n\nIf the output is longer than the specified width, no padding is applied.\n\nMust be a non-negative integer. Throws a `TypeError` for invalid values.\n\n```js\nimport prettyBytes from 'pretty-bytes';\n\nprettyBytes(1337, {fixedWidth: 10});\n//=> '   1.34 kB'\n\nprettyBytes(100_000, {fixedWidth: 10});\n//=> '  100 kB'\n\n// Useful for progress bars and tables\n[1000, 10_000, 100_000].map(bytes => prettyBytes(bytes, {fixedWidth: 8}));\n//=> ['   1 kB', '  10 kB', ' 100 kB']\n```\n\n## FAQ\n\n### Why kB and not KB?\n\n`k` is the [standardized SI prefix](https://en.wikipedia.org/wiki/Metric_prefix) for kilo.\n\n## Related\n\n- [pretty-bytes-cli](https://github.com/sindresorhus/pretty-bytes-cli) - CLI for this module\n- [pretty-ms](https://github.com/sindresorhus/pretty-ms) - Convert milliseconds to a human readable string\n","_attachments":{},"homepage":"https://github.com/sindresorhus/pretty-bytes#readme","bugs":{"url":"https://github.com/sindresorhus/pretty-bytes/issues"},"license":"MIT"}