@lzwme/asmd-calc
Version:
支持浮点数精度的加减乘除四则运算 JS 库。
100 lines (99 loc) • 3.06 kB
JSON
{
"name": "@lzwme/asmd-calc",
"version": "1.3.4",
"description": "支持浮点数精度的加减乘除四则运算 JS 库。",
"main": "build/main/index.js",
"browser": "build/main/index.js",
"module": "build/module/index.js",
"typings": "build/main/index.d.ts",
"private": false,
"license": "MIT",
"repository": "https://github.com/lzwme/asmd-calc.git",
"author": {
"name": "renxia",
"email": "lzwy0820@qq.com",
"url": "https://lzw.me"
},
"engines": {
"node": ">=10"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.com"
},
"files": [
"build",
"REDME.md",
"README-zh-CN.md"
],
"keywords": [
"calc",
"precision",
"number",
"decimal",
"float",
"floating-point",
"浮点数计算",
"浮点数精确计算"
],
"scripts": {
"prepare": "husky || true",
"start": "npm run watch",
"build": "run-s clean && run-p build:*",
"build:main": "tsc -p tsconfig.cjs.json",
"build:module": "tsc -p tsconfig.module.json",
"fix": "run-s fix:*",
"fix:lint": "eslint src/**/*.ts --fix",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"test": "run-s test:*",
"test:lint": "eslint src/*/*.ts",
"test:prettier": "prettier \"src/**/*.ts\" --list-different",
"test:unit": "npm run cov",
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
"watch:build": "tsc -p tsconfig.json -w",
"watch:test": "jest --watch",
"cov": "jest --coverage --silent",
"cov:html": "jest --coverage --silent --reporter=html",
"doc": "run-s doc:html",
"doc:html": "typedoc src/ --exclude **/*.spec.ts --out docs --tsconfig tsconfig.module.json",
"doc:json": "typedoc src/ --exclude **/*.spec.ts --json docs/typedoc.json --tsconfig tsconfig.module.json",
"version": "standard-version",
"clean": "flh rm -f build",
"release": "run-s build doc:html",
"release-version": "run-s test release version",
"benchmark": "ts-node -T benchmark/index.ts"
},
"devDependencies": {
"@eslint/js": "^9.23.0",
"@jest/core": "^29",
"@lzwme/fed-lint-helper": "^2.6.6",
"@swc/core": "^1.11.16",
"@swc/jest": "^0.2.37",
"@types/eslint": "^9.6.1",
"@types/jest": "^29.5.14",
"@types/node": "^22",
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"decimal.js": "^10.5.0",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^9.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-prettier": "^5.2.5",
"husky": "^9.1.7",
"jest": "^29",
"mathjs": "^14.4.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.5.3",
"standard-version": "^9.5.0",
"ts-node": "^10.9.2",
"typedoc": "^0.28.1",
"typescript": "^5.8.2",
"typescript-eslint": "^8.29.0"
},
"prettier": {
"singleQuote": true
}
}