{"_id":"tofixed","_rev":"4-e043abf0ebce30cf3014b2ea0829becf","name":"tofixed","description":"Converts a number into a string, keeping a specified number of decimals.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"tofixed","version":"1.0.0","description":"Converts a number into a string, keeping a specified number of decimals.","main":"index.js","directories":{"test":"test"},"scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","watch":"onchange 'index.js' 'test/**/*.js' -e 'test/coverage/**/*.js' -- npm test","prepublish":"npm test"},"keywords":["tofixed","fixed","precision","number","convert","converter"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gearcase/tofixed.git"},"bugs":{"url":"https://github.com/gearcase/tofixed/issues"},"homepage":"https://github.com/gearcase/tofixed#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5","onchange":"^2.4.0"},"gitHead":"4e5c24caea32e530cf0852eaa84e27f702a41e27","_id":"tofixed@1.0.0","_shasum":"6dc06d545bc99bd3a07d6c9d5cac4d7c58f8ab07","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"6dc06d545bc99bd3a07d6c9d5cac4d7c58f8ab07","tarball":"https://registry.npmjs.org/tofixed/-/tofixed-1.0.0.tgz","integrity":"sha512-NVkL6w6sOxgqSceVExZ+zeszjggP+SdFit9D74zqqFvVPaKPk8VhZ+V2XGcWzxb7paGILCZpPuMSR+7gSh3ctA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID99/ZNklXqNE1Ap6d3lbo0rNKyHleXud58fXoPQRQcyAiA381hEbBdoA8mxnCRKhlEi7/z12RFM62W/o+jKh4/GVA=="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tofixed-1.0.0.tgz_1461432933444_0.8954673446714878"}}},"readme":"# toFixed\n\n> Converts a number into a string, keeping a specified number of decimals.\n\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/gearcase/tofixed/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/gearcase/toFixed/master.svg?style=flat-square)](https://travis-ci.org/gearcase/toFixed)\n[![coverage:?](https://img.shields.io/coveralls/gearcase/toFixed/master.svg?style=flat-square)](https://coveralls.io/github/gearcase/toFixed)\n\n\n## Install\n\n```\n$ npm install --save tofixed\n```\n\n## Usage\n\n```js\nvar toFixed = require('tofixed');\n\n// API\n// - toFixed(number, precision)\n\ntoFixed(5.56789, 2);\n// => '5.57'\n```\n\nNote: it will return a fixed number of *at most* `precision` digits after the decimal. \n\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/gearcase/tofixed/issues/new).\n","maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"time":{"modified":"2022-06-27T07:30:37.805Z","created":"2016-04-23T17:35:36.674Z","1.0.0":"2016-04-23T17:35:36.674Z"},"homepage":"https://github.com/gearcase/tofixed#readme","keywords":["tofixed","fixed","precision","number","convert","converter"],"repository":{"type":"git","url":"git+https://github.com/gearcase/tofixed.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/gearcase/tofixed/issues"},"license":"MIT","readmeFilename":"README.md","users":{"wesleycoder":true}}