{"name":"prettier-bytes","description":"augment pretty-bytes to make the output a little more readable (and a little less precise)","version":"1.0.4","author":{"name":"Dan Flettre","email":"flettre@gmail.com"},"bugs":{"url":"https://github.com/Flet/prettier-bytes/issues"},"devDependencies":{"standard":"*","tap-spec":"^4.0.2","tape":"^4.0.0"},"homepage":"https://github.com/Flet/prettier-bytes","keywords":["bytes","output","pretty","pretty-bytes"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"git+https://github.com/Flet/prettier-bytes.git"},"scripts":{"test":"tape test/*.js | tap-spec && standard"},"dependencies":{},"gitHead":"529def93ba4fe65708907582af726d2a2c6716c9","_id":"prettier-bytes@1.0.4","_shasum":"994b02aa46f699c50b6257b5faaa7fe2557e62d6","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.2.6","_npmUser":{"name":"flet","email":"flettre@gmail.com"},"dist":{"shasum":"994b02aa46f699c50b6257b5faaa7fe2557e62d6","tarball":"http://registry-npm.ywwl.com/prettier-bytes/download/prettier-bytes-1.0.4.tgz","integrity":"sha512-dLbWOa4xBn+qeWeIF60qRoB6Pk2jX5P3DIVgOQyMyvBpu931Q+8dXz8X0snJiFkQdohDDLnZQECjzsAj75hgZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrQ2/SynsQ+1zJNNEFf+qoVvX9EgIiOi682IW0JjagbAIgStg0NhMfLsi2KlNBuZtF0kWLudWUffDghC6tOeg2JPU="}],"size":5080,"noattachment":false,"key":"/prettier-bytes/-/prettier-bytes-1.0.4.tgz"},"maintainers":[{"name":"dcposch","email":"dcposch@dcpos.ch"},{"name":"feross","email":"feross@feross.org"},{"name":"flet","email":"flettre@gmail.com"},{"name":"rom1504","email":"romain.rom1@gmail.com"},{"name":"ungoldman","email":"ungoldman@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/prettier-bytes-1.0.4.tgz_1494869528437_0.39793283259496093"},"directories":{},"readme":"# prettier-bytes\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n\n[npm-image]: https://img.shields.io/npm/v/prettier-bytes.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/prettier-bytes\n[travis-image]: https://img.shields.io/travis/Flet/prettier-bytes.svg?style=flat-square\n[travis-url]: https://travis-ci.org/Flet/prettier-bytes\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n\nAugment pretty-bytes to make the output a little more readable (and a little less precise)\n\nDifferences from `pretty-bytes`:\n - The fractional portion is rounded to one digit (ex: `2.1 MB`).\n - If there is more than one digit to the left of the decimal, the fractional portion is rounded off  (ex: `11 KB`).\n - Changed `kB` to `KB`, for more prettiness. Regular users are not likely to care about the technical difference.\n - No dependencies.\n\n## Install\n\n```\nnpm install prettier-bytes\n```\n\n## Usage\n\n```js\nvar prettierBytes = require('prettier-bytes')\n\nvar pretty = prettierBytes(1337)\nconsole.log(pretty)\n// logs 1.3 KB\n```\n\nExamples from test output:\n```bash\n    ✔ bytes: 2 -> 2 B\n    ✔ bytes: 9 -> 9 B\n    ✔ bytes: 25 -> 25 B\n    ✔ bytes: 235 -> 235 B\n    ✔ bytes: 2335 -> 2.3 KB\n    ✔ bytes: 23552 -> 24 KB\n    ✔ bytes: 235520 -> 236 KB\n    ✔ bytes: 2355520 -> 2.4 MB\n    ✔ bytes: 23555520 -> 24 MB\n    ✔ bytes: 235555520 -> 236 MB\n    ✔ bytes: 2355555520 -> 2.4 GB\n    ✔ bytes: 23555555520 -> 24 GB\n    ✔ bytes: 235556555520 -> 236 GB\n    ✔ bytes: 2355556655520 -> 2.4 TB\n    ✔ bytes: 23555566655520 -> 24 TB\n    ✔ bytes: 235555566665520 -> 236 TB\n```\n\n## Contributing\n\nContributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.\n\n## License\n\n[ISC](LICENSE)\n","publish_time":1494869530133,"_cnpm_publish_time":1494869530133,"dist-tags":{"latest":"1.0.4"}}