num-beauty
Version:
An ultra lightweight module for formatting numbers into human-friendly strings
96 lines (95 loc) • 2.51 kB
JSON
{
"name": "num-beauty",
"version": "0.1.1",
"type": "module",
"description": "An ultra lightweight module for formatting numbers into human-friendly strings",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:prod": "npm run clean && tsc -p tsconfig.prod.json && node minify.cjs",
"test": "jest",
"test:watch": "jest --watch",
"test:currency": "jest currency.test.ts",
"test:cache": "jest cache.test.ts",
"test:coverage": "jest --coverage",
"benchmark": "node benchmark.cjs",
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
"prepare": "husky install",
"prepublishOnly": "npm test && npm run lint && npm run build:prod",
"preversion": "npm run lint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags",
"docs": "typedoc",
"docs:watch": "typedoc --watch"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"keywords": [
"number",
"formatting",
"locale",
"mask",
"typescript",
"format",
"pretty",
"big",
"human",
"readable",
"string",
"text",
"exponential",
"thousands",
"separator",
"significant",
"round",
"decimal",
"fixed",
"decrease",
"precision"
],
"author": "Evandro Meneses Carneiro",
"homepage": "https://github.com/MenesesEvandro/num-beauty/#readme",
"repository": {
"type": "git",
"url": "https://github.com/MenesesEvandro/num-beauty/.git"
},
"bugs": {
"url": "https://github.com/MenesesEvandro/num-beauty//issues"
},
"license": "MIT",
"files": [
"dist",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=14.0.0"
},
"devDependencies": {
"@eslint/js": "^9.27.0",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.0",
"jest": "^29.7.0",
"lint-staged": "^11.2.0",
"prettier": "^2.4.1",
"terser": "^5.39.2",
"ts-jest": "^29.3.4",
"ts-node": "^10.4.0",
"typedoc": "^0.28.4",
"typedoc-plugin-markdown": "^4.6.3",
"typescript": "^4.4.4"
}
}