number-suffix
Version:
Turns a number to a fixed string with a metric or abbreviation suffix
61 lines (60 loc) • 1.52 kB
JSON
{
"name": "number-suffix",
"version": "1.1.0",
"description": "Turns a number to a fixed string with a metric or abbreviation suffix",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"scripts": {
"build": "npx tsup src/index.ts --out-dir=dist --tsconfig=tsconfig.json --minify --dts --format=\"esm,cjs\" --clean",
"prepack": "npm run build",
"lint": "npx eslint",
"test": "npx jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Motistudio/number-suffix.git"
},
"keywords": [
"number",
"abbreviation",
"suffix",
"metric",
"integer",
"float",
"double",
"convert",
"fix",
"toFixed",
"fixed"
],
"author": "Moti Shriki",
"license": "MIT",
"bugs": {
"url": "https://github.com/Motistudio/number-suffix/issues"
},
"homepage": "https://github.com/Motistudio/number-suffix#readme",
"devDependencies": {
"@jest/globals": "^29.6.4",
"@swc/core": "^1.8.0",
"@types/jest": "^29.5.4",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "8.48.0",
"jest": "^29.6.4",
"ts-jest": "^29.1.1",
"tsup": "^8.3.5",
"typescript": "^5.4.5"
}
}