{"_id":"simple-format-number","_rev":"5-fe1834132e3cca24137b29d7e02a835d","name":"simple-format-number","description":"A simple clean way to format numbers with Javascript","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"simple-format-number","version":"0.1.0","description":"A simple clean way to format numbers with Javascript","main":"index.js","scripts":{"lint":"eslint index.js","test":"npm run lint && node test"},"repository":{"type":"git","url":"git+https://github.com/gcanti/simple-format-number.git"},"author":{"name":"Giulio Canti","email":"giulio.canti@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/gcanti/simple-format-number/issues"},"homepage":"https://github.com/gcanti/simple-format-number","devDependencies":{"eslint":"1.2.0","tape":"4.2.0"},"tags":[],"keywords":[],"gitHead":"1741662db6784c646318a69a0618f38ec69bda5a","_id":"simple-format-number@0.1.0","_shasum":"0a4a673343b0304008d62e741acb9c1b4488ccd7","_from":".","_npmVersion":"2.9.0","_nodeVersion":"0.12.2","_npmUser":{"name":"gcanti","email":"giulio.canti@gmail.com"},"maintainers":[{"name":"gcanti","email":"giulio.canti@gmail.com"}],"dist":{"shasum":"0a4a673343b0304008d62e741acb9c1b4488ccd7","tarball":"https://registry.npmjs.org/simple-format-number/-/simple-format-number-0.1.0.tgz","integrity":"sha512-OAjOMl5FMujnpxfU1vsKhdBFVSsBydZZhqknr4NxuHw5v8IVG+/yBlIB3kMLNuRi4gvv42fhG0k19DRuWZw0Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2PMQ3jm0lBZaI5wY1MsmpH5qt7k2mpyu9Yz/WL6HSMAIhAOmOuw4sIVXI56s10Wfnk2aBamTOTDx7SQHCmK/kUJJO"}]}},"0.1.1":{"name":"simple-format-number","version":"0.1.1","description":"A simple clean way to format numbers with Javascript","main":"index.js","files":["index.js"],"scripts":{"lint":"eslint index.js","test":"npm run lint && node test"},"repository":{"type":"git","url":"git+https://github.com/gcanti/simple-format-number.git"},"author":{"name":"Giulio Canti","email":"giulio.canti@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/gcanti/simple-format-number/issues"},"homepage":"https://github.com/gcanti/simple-format-number","dependencies":{"lodash":"^3.10.1"},"devDependencies":{"eslint":"1.2.0","tape":"4.2.0"},"tags":["format","number"],"keywords":["format","number"],"gitHead":"0030edf0da7e3e44cbcc4ed6c212ffd2e1a78b81","_id":"simple-format-number@0.1.1","_shasum":"1c81c7a235a47a850a953c03fe2ff571469314f7","_from":".","_npmVersion":"2.9.0","_nodeVersion":"0.12.2","_npmUser":{"name":"gcanti","email":"giulio.canti@gmail.com"},"maintainers":[{"name":"gcanti","email":"giulio.canti@gmail.com"}],"dist":{"shasum":"1c81c7a235a47a850a953c03fe2ff571469314f7","tarball":"https://registry.npmjs.org/simple-format-number/-/simple-format-number-0.1.1.tgz","integrity":"sha512-UipBLnowQwCjdHmKB4qlJUGCohc8s1lgHJugH21tY++97KotPiKB7XCiquBd722EZoMFCOzx7eldCVwZGxj9cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP5bIjG1iF/DLACQ/6P6hJV6dmax6GXIkt58UOHms48QIgZIs+hn7JTDd1PiXjleQIuxL3+tTsICWzokU81P7yGE8="}]}},"0.1.2":{"name":"simple-format-number","version":"0.1.2","description":"A simple clean way to format numbers with Javascript","main":"index.js","files":["index.js"],"scripts":{"lint":"eslint index.js","test":"npm run lint && node test"},"repository":{"type":"git","url":"git+https://github.com/gcanti/simple-format-number.git"},"author":{"name":"Giulio Canti","email":"giulio.canti@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/gcanti/simple-format-number/issues"},"homepage":"https://github.com/gcanti/simple-format-number","devDependencies":{"eslint":"1.2.0","tape":"4.2.0"},"tags":["format","number"],"keywords":["format","number"],"gitHead":"796fbb5fdd6343dc0812e8feffdda213ecabcd70","_id":"simple-format-number@0.1.2","_shasum":"5e2a2d017971cdea9e22461993c73106bd9ab67a","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"gcanti","email":"giulio.canti@gmail.com"},"maintainers":[{"name":"gcanti","email":"giulio.canti@gmail.com"}],"dist":{"shasum":"5e2a2d017971cdea9e22461993c73106bd9ab67a","tarball":"https://registry.npmjs.org/simple-format-number/-/simple-format-number-0.1.2.tgz","integrity":"sha512-AfVIupA6zqcrSNtUR9Nkqpqmc5ILaPOWgH5/a/BeJCJ9bjRyksPOEHEbrTf2mEw1L84a6GJOV7m0LkVm2RWdiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2EDeO9lHx7WRC9Wf6k6pOtr8WekHon/gVsydyoNNm9QIgE5pofC/enGw5BhkRcM9fnCK3RX9IusBvBHwNcTJgXiA="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/simple-format-number-0.1.2.tgz_1457018087802_0.028547821333631873"}}},"readme":"A simple clean way to format numbers with Javascript\n\n# Setup\n\n```sh\nnpm install simple-format-number\n```\n\n# Usage\n\n```js\nvar formatNumber = require('simple-format-number');\n\nformatNumber(1000.342); // => 1,000.34\nformatNumber(1000.342, { fractionDigits: 3 }): // => 1,000.342\nformatNumber(1000.342, { symbols: { decimal: ',', grouping: '.' } }); // => 1.000,34 (italian format)\n```\n\n# API\n\n```js\nformatNumber(number, options)\n```\n\nwhere:\n\n- `number` the number to format\n- `options`\n  - `fractionDigits: number` the number of decimal digits (default `2`)\n  - `useGrouping: boolean` set to `false` when you want to display a number in a textbox (default `true`)\n  - `symbols`\n    - `decimal` the decimal symbol (default `.`)\n    - `grouping` the grouping symbol (default `,`)\n\n","maintainers":[{"name":"gcanti","email":"giulio.canti@gmail.com"}],"time":{"modified":"2022-06-26T19:38:20.243Z","created":"2015-10-16T14:17:14.505Z","0.1.0":"2015-10-16T14:17:14.505Z","0.1.1":"2016-01-03T09:55:20.484Z","0.1.2":"2016-03-03T15:14:50.690Z"},"homepage":"https://github.com/gcanti/simple-format-number","keywords":["format","number"],"repository":{"type":"git","url":"git+https://github.com/gcanti/simple-format-number.git"},"author":{"name":"Giulio Canti","email":"giulio.canti@gmail.com"},"bugs":{"url":"https://github.com/gcanti/simple-format-number/issues"},"license":"MIT","readmeFilename":"README.md"}