{"name":"human-readable-numbers","version":"0.9.1","description":"Print numbers in human readable format.","main":"dist/index.min.js","scripts":{"test":"mocha ./spec/**/*.[sS]pec.js","build":"mkdir -p ./dist && uglifyjs ./src/index.js > ./dist/index.min.js -b beautify=false,preamble=\"'/*! Human readable numbers - v0.9 - 2018; Licensed MIT */'\"","preversion":"npm test","version":"npm run build","postversion":"git push && git push --tags && rm -rf ./dist","release:patch":"npm version patch -m \"Upgrade to %s\" && npm publish"},"repository":{"type":"git","url":"git+https://github.com/cerberus-ab/human-readable-numbers.git"},"keywords":["human","readable","numbers"],"author":{"name":"Antony Belov","email":"cerberus.ab@mail.ru"},"license":"MIT","bugs":{"url":"https://github.com/cerberus-ab/human-readable-numbers/issues"},"homepage":"https://github.com/cerberus-ab/human-readable-numbers#readme","devDependencies":{"mocha":"^5.2.0","uglify-js":"^3.4.9"},"gitHead":"60562937f4ed85f2076e005308b753348e971e7f","_id":"human-readable-numbers@0.9.1","_shasum":"d70767ccbf6066cbb9f239e9db685445f511fbe7","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"cerberus.ab","email":"cerberus.ab@mail.ru"},"dist":{"shasum":"d70767ccbf6066cbb9f239e9db685445f511fbe7","tarball":"http://registry-npm.ywwl.com/human-readable-numbers/download/human-readable-numbers-0.9.1.tgz","integrity":"sha512-hX4WXqdwb/twn68QzGN0z9CCdFTX1Nf7b7DD+i2T+ZnZuMNjVgVsQXr74mZRZuPmih9ZqLYpPJyx7V475TYRLw==","fileCount":4,"unpackedSize":2371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbr7HlCRA9TVsSAnZWagAArPgQAIiN0vzV/KTMpKiImAFV\nTSyaEjgja6Nf3YCALmDgyVeyJIIfak3115gdEBHUwqnJ06pX4hBx/OpxGnIh\n8VTbmIOGfnGPjCnlrqUfN4LVBTrpYTH1ixQh9hPGXH/d23DMAN9ACQ2zJiz7\n6i6yThYTeQO00U81f+Haqq8FV22ZD+GmjW3cMZy3Q4iRh37T9l3yOa1dcTU5\nYWFDJElTawnllqbyFqpFFnfz/m010S5tDOZpMrdcwD1JaYDk99GZh/HUDFCC\n5HlvdO0PtIMC53qqbs9nkNx5cXJ1nnxdsl0p4BOTldlg8kkZNk0HlNW6vOAL\ngLHWS67RPBAQTBguP9NxczdmCO0+xIARWzFm7THhYLem0Nc0qCHtEgAtTwOq\nIpuAncQAWx/BDAtEEVcKimVdRwE3Nq8fZ2TDAAJSJRs6SjLyOmuc43lsb26F\nk8ae762crswCyRcyiKOn6biVTvtzlPG0qKAVcxJ6sJuXYO+HW4KtbzFDmQBG\nTRccjDSLwu14+fLKCWkghUb39pY2dHebGfvb0ino7X1Z8mkPnl6NGejHtc3j\noHVas4DyKKbpz0OqoprB5Tm/SP/sI2mDafEfHsndQADsGql3+8A20y5XpiPx\nxNxJn3AdHE5dyBvfvwjIB+I3tVUSNG+CKcJrgCmyo5sSo7Jp4lG5QVAEAQsi\n0pgP\r\n=7UJt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbGMsUFtxDJlRFbQnK6wiVk63WUn4JT+mDE4zuJGUfhAiB0+aLNfi3K1F1PgBR63oyoF0iRWHm/6jM0b70QPnqkxw=="}],"size":1467,"noattachment":false,"key":"/human-readable-numbers/-/human-readable-numbers-0.9.1.tgz"},"maintainers":[{"name":"cerberus.ab","email":"cerberus.ab@mail.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-readable-numbers_0.9.1_1538240996904_0.738894890278059"},"_hasShrinkwrap":false,"readme":"# Human Readable Numbers ![Build Status](https://travis-ci.org/cerberus-ab/human-readable-numbers.svg?branch=master)\nPrint numbers in human readable format according to [SI prefixes](https://physics.nist.gov/cuu/Units/prefixes.html) except *hecto*, *deka*, *deci* and *centi*.\n\n## Installation\nUsing npm:\n```bash\n$ npm i --save human-readable-numbers\n```\n\nIn a browser:\n```html\n<script src=\"dist/index.min.js\"></script>\n```\n\nIn node.js:\n```javascript\nvar HRNumbers = require('human-readable-numbers');\n```\n\nAlso the module exported as AMD module.\n\n## Documentation\n> string toHumanString(number)\n\nFunction prints numbers in human readable format.\n```javascript\nvar string = HRNumbers.toHumanString(number);\n```\nExamples:\n\nFrom number | To string\n--- | ---\n0 | 0\n120 | 120\n5000 | 5k\n12345 | 12.3k\n1800000 | 1.8M\n129500000 | 130M\n35e+13 | 350T\n1.5e+24 | 1.5Y\n0.95 | 950m\n0.0006 | 600µ\n15e-8 | 150n\n4.5e-24 | 4.5y\n-30 | -30\n-9500 | -9.5k\n-17e-10 | -1.7n\n 4.567e+27 | 4570Y\n","publish_time":1538240997016,"_cnpm_publish_time":1538240997016,"dist-tags":{"latest":"0.9.5"}}