@skenvy/collatz
Version:
Functions related to the Collatz/Syracuse/3N+1 problem, implemented in JavaScript.
103 lines (102 loc) • 3.7 kB
JSON
{
"name": "@skenvy/collatz",
"version": "1.3.0",
"description": "Functions related to the Collatz/Syracuse/3N+1 problem, implemented in JavaScript.",
"keywords": [
"Collatz",
"Ulam",
"Kakutani's",
"Thwaites",
"Hasse's",
"Syracuse"
],
"homepage": "https://github.com/Skenvy/Collatz/tree/main/javascript",
"bugs": {
"url": "https://github.com/Skenvy/Collatz/issues/new/choose",
"email": "nathan.a.z.levett@gmail.com"
},
"license": "Apache-2.0",
"author": "Nathan Levett <nathan.a.z.levett@gmail.com> (https://github.com/Skenvy)",
"contributors": [],
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/Skenvy"
}
],
"files": [
"./lib/**/*"
],
"main": "./lib/esm/index.mjs",
"types": "./lib/esm/types/index.d.ts",
"type": "module",
"exports": {
".": {
"import": {
"types": "./lib/esm/types/index.d.ts",
"default": "./lib/esm/index.mjs"
},
"require": {
"types": "./lib/cjs/types/index.d.ts",
"default": "./lib/cjs/index.cjs"
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Skenvy/Collatz.git",
"directory": "javascript"
},
"scripts": {
"clean": "rm -rf ./lib",
"test": "cross-env TS_NODE_PROJECT='./tsconfig.mocha.json' nyc mocha",
"lint": "eslint src --ext .ts",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "npm run build:esm:tsc && npm run build:esm:one && npm run build:esm:type",
"build:esm:tsc": "tsc -p ./tsconfig.esm.json",
"build:esm:one": "mv lib/esm/index.js lib/esm/index.mjs",
"build:esm:type": "echo '{\"type\":\"module\"}' > lib/esm/package.json",
"build:esm:ftype::wip": "for f in `find ./lib/esm -iname '*.js' -type f -print`;do mv \"$f\" ${f%.js}.mjs; done",
"build:cjs": "npm run build:cjs:tsc && npm run build:cjs:one && npm run build:cjs:type",
"build:cjs:tsc": "tsc -p ./tsconfig.cjs.json",
"build:cjs:one": "mv lib/cjs/index.js lib/cjs/index.cjs",
"build:cjs:type": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json",
"build:cjs:ftype::wip": "for f in `find ./lib/cjs -iname '*.js' -type f -print`;do mv \"$f\" ${f%.js}.cjs; done",
"docs": "npm run docs:clean && npm run docs:tsdoc && npm run docs:coverage",
"docs:clean": "rm -rf ./docs",
"docs:tsdoc": "typedoc src/index.ts --out docs/tsdoc --tsconfig tsconfig.esm.json",
"docs:coverage": "mkdir -p docs/coverage && TS_NODE_PROJECT='./tsconfig.mocha.json' nyc --reporter=html --report-dir=./docs/coverage --preserve-comments=true --produce-source-map=true mocha",
"docs:server": "http-server",
"publish:jsr:dry-and-dirty": "jsr publish --dry-run --allow-dirty",
"publish:jsr:dry": "jsr publish --dry-run",
"publish:jsr": "jsr publish",
"prepack": "npm run build"
},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.6",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"chai": "^5.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tsdoc": "^0.3.0",
"http-server": "^14.1.1",
"jsr": "^0.13.3",
"mocha": "^11.0.1",
"nyc": "^17.0.0",
"ts-node": "^10.9.2",
"typedoc": "^0.27.2",
"typescript": "^5.7.3"
},
"engines": {
"node": "^20.0.0 || >=22.0.0"
}
}