UNPKG

tofixed

Version:

Converts a number into a string, keeping a specified number of decimals.

48 lines (47 loc) 1.23 kB
{ "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" } }