83 lines
2.7 KiB
JSON
83 lines
2.7 KiB
JSON
{
|
|
"name": "numbro",
|
|
"version": "2.5.0",
|
|
"description": "Format and manipulate numbers.",
|
|
"homepage": "http://numbrojs.com",
|
|
"author": {
|
|
"name": "Benjamin Van Ryseghem",
|
|
"email": "benjamin@vanryseghem.com",
|
|
"url": "https://benjamin.vanryseghem.com"
|
|
},
|
|
"keywords": [
|
|
"numeral",
|
|
"numbro",
|
|
"number",
|
|
"format",
|
|
"time",
|
|
"money",
|
|
"percentage"
|
|
],
|
|
"main": "./dist/numbro.min.js",
|
|
"browser": "./dist/es/numbro.js",
|
|
"typings": "./numbro.d.ts",
|
|
"engines": {
|
|
"node": "*"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/BenjaminVanRyseghem/numbro"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/BenjaminVanRyseghem/numbro/issues"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
"@rollup/plugin-terser": "^0.4.3",
|
|
"all-contributors-cli": "^6.18.0",
|
|
"auto-load": "^3.0.4",
|
|
"bump-regex": "^4.1.0",
|
|
"eslint": "^8.48.0",
|
|
"eslint-plugin-jasmine": "^4.1.3",
|
|
"glob": "^10.3.4",
|
|
"jasmine": "^5.1.0",
|
|
"jasmine-core": "^5.1.1",
|
|
"minimatch": "^9.0.3",
|
|
"nyc": "^15.1.0",
|
|
"rewire": "^7.0.0",
|
|
"rimraf": "^5.0.1",
|
|
"rollup": "^3.28.1",
|
|
"rollup-plugin-license": "^3.0.1",
|
|
"rollup-plugin-sourcemaps": "^0.6.3"
|
|
},
|
|
"scripts": {
|
|
"prepublishOnly": "echo \"Are you sure you want to publish a new release with version ${npm_package_version}? (y/n)?\" && read choice && case \"$choice\" in y|Y ) npm run build;; * ) echo \"Abort!\" && exit 1;; esac",
|
|
"postpublish": "git tag -as ${npm_package_version} -m \"Release version ${npm_package_version}\" && git push && git push --tags",
|
|
"preversion": "echo \"Use `bump:xxx` instead\" && exit 1",
|
|
"lint": "npx eslint --report-unused-disable-directives --rulesdir ./eslint_rules ./src/**/*.js ./tests/**/*.js ./languages/**/*.js",
|
|
"test:unit": "npx jasmine",
|
|
"test:integration": "npx jasmine ./integrationTests/node/numbro.js",
|
|
"test": "npm run test:unit && npm run test:integration",
|
|
"bump:major": "node ./toolchain/bump.js major",
|
|
"bump:minor": "node ./toolchain/bump.js minor",
|
|
"bump:patch": "node ./toolchain/bump.js patch",
|
|
"build": "NODE_ENV=production rollup -c",
|
|
"build:clean": "npx rimraf dist",
|
|
"coverage:instrument": "nyc --all --silent jasmine",
|
|
"coverage:report": "nyc report --reporter=lcov",
|
|
"coverage:check": "nyc check-coverage --lines 100 --branches 100 --statements 100 --functions 100"
|
|
},
|
|
"files": [
|
|
"LICENSE",
|
|
"LICENSE-Numeraljs",
|
|
"CHANGELOG",
|
|
"CHANGELOG-Numeraljs.md",
|
|
"numbro.d.ts",
|
|
"languages",
|
|
"dist"
|
|
],
|
|
"dependencies": {
|
|
"bignumber.js": "^8 || ^9"
|
|
}
|
|
} |