UNPKG

currency.js

Version:

A small, lightweight javascript library for working with currency values.

95 lines (94 loc) 2.91 kB
{ "name": "currency.js", "homepage": "http://scurker.github.io/currency.js", "version": "1.2.2", "description": "A small, lightweight javascript library for working with currency values.", "main": "dist/currency.js", "module": "dist/currency.es.js", "js:next": "dist/currency.es.js", "browser": "dist/currency.min.js", "engines": { "node": ">=4" }, "directories": { "test": "test" }, "scripts": { "build": "npm-run-all clean transpile copy-typescript-definition copy-flow-definition", "build:docs": "npm-run-all clean:docs compile:docs minify:docs", "clean": "rm -rf dist/*", "clean:docs": "rm -rf docs/build", "compile:docs": "npx babel-node --presets=@babel/preset-env ./docs/src/build-docs.js", "coverage": "BABEL_ENV=test nyc ava ./test/test.js", "coverage:report": "nyc report --reporter=text-lcov | coveralls", "copy-typescript-definition": "cp -f src/currency.d.ts dist", "copy-flow-definition": "cp -f src/currency.js.flow dist", "lint": "eslint .", "minify:docs": "html-minifier --input-dir ./docs/build --output-dir ./docs/build --file-ext html --collapse-whitespace --decode-entities --minify-css --minify-js", "prepare": "npm run build", "transpile": "rollup -c ./config/rollup.config.js && rollup -c ./config/rollup.umd.js", "test": "npm-run-all test:typescript test:flow test:ava", "pretest:ava": "npm run build", "test:ava": "BABEL_ENV=test ava ./test/test.js", "test:typescript": "tsc -p ./test --noEmit", "test:flow": "flow" }, "repository": { "type": "git", "url": "git://github.com/scurker/currency.js.git" }, "files": [ "dist" ], "typings": "./dist/currency.d.ts", "keywords": [ "currency", "money", "utilities", "accounting", "format", "number", "parse", "precision", "decimal" ], "author": "Jason Wilson", "license": "MIT", "bugs": { "url": "https://github.com/scurker/currency.js/issues" }, "devDependencies": { "@babel/cli": "^7.4.4", "@babel/core": "^7.4.5", "@babel/node": "^7.4.5", "@babel/preset-env": "^7.4.5", "@babel/preset-flow": "^7.0.0", "@babel/register": "^7.4.4", "@scurker/eslint-config": "^1.1.5", "ava": "^2.0.0", "cheerio": "^1.0.0-rc.2", "eslint": "^5.16.0", "flow-bin": "^0.100.0", "google-closure-compiler-js": "^20190528.0.0", "gzip-size": "^5.1.1", "handlebars": "^4.1.2", "highlight.js": "^9.15.8", "html-minifier": "^4.0.0", "matchdep": "^2.0.0", "metalsmith": "^2.3.0", "metalsmith-ignore": "^1.0.0", "metalsmith-markdown": "^1.2.0", "minimatch": "^3.0.4", "npm-run-all": "^4.1.5", "nyc": "^14.1.1", "pretty-bytes": "^5.2.0", "rollup": "^1.13.1", "rollup-plugin-babel": "^4.3.2", "typescript": "^3.5.1" }, "nyc": { "include": [ "dist/**/*.js" ] } }