UNPKG

fast-unique-numbers

Version:

A module to create a set of unique numbers as fast as possible.

84 lines (83 loc) 4.09 kB
{ "author": "Christoph Guttandin", "browser": "build/es5/bundle.js", "bugs": { "url": "https://github.com/chrisguttandin/fast-unique-numbers/issues" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "dependencies": { "@babel/runtime": "^7.29.7", "tslib": "^2.8.1" }, "description": "A module to create a set of unique numbers as fast as possible.", "devDependencies": { "@babel/cli": "^7.29.7", "@babel/core": "^7.29.7", "@babel/plugin-external-helpers": "^7.29.7", "@babel/plugin-transform-runtime": "^7.29.7", "@babel/preset-env": "^7.29.7", "@commitlint/cli": "^21.0.2", "@commitlint/config-angular": "^21.0.2", "@rollup/plugin-babel": "^7.1.0", "@vitest/browser-webdriverio": "^4.1.8", "commitizen": "^4.3.1", "cz-conventional-changelog": "^3.3.0", "eslint": "^9.39.4", "eslint-config-holy-grail": "^63.0.1", "globals": "^17.6.0", "husky": "^9.1.7", "lint-staged": "^17.0.7", "prettier": "^3.8.3", "rimraf": "^6.1.3", "rollup": "^4.61.0", "tinybench": "^4.0.1", "tsconfig-holy-grail": "^16.0.0", "tslint": "^6.1.3", "tslint-config-holy-grail": "^57.0.0", "typescript": "^5.9.3", "vitest": "^4.1.8" }, "engines": { "node": ">=22.22.2" }, "files": [ "build/es2019/", "build/es5/", "build/node/", "src/" ], "homepage": "https://github.com/chrisguttandin/fast-unique-numbers", "keywords": [ "performance", "speed" ], "license": "MIT", "main": "build/node/module.js", "module": "build/es2019/module.js", "name": "fast-unique-numbers", "repository": { "type": "git", "url": "https://github.com/chrisguttandin/fast-unique-numbers.git" }, "scripts": { "build": "rimraf build/* && tsc --project src/tsconfig.json && rollup --config config/rollup/bundle.mjs && babel ./build/es2019 --config-file ./config/babel/build.json --out-dir ./build/node", "lint": "npm run lint:config && npm run lint:src && npm run lint:test", "lint:config": "eslint --config config/eslint/config.mjs --ext .cjs --ext .js --ext .mjs --report-unused-disable-directives config/", "lint:src": "tslint --config config/tslint/src.json --project src/tsconfig.json src/*.ts src/**/*.ts", "lint:test": "eslint --config config/eslint/test.mjs --ext .js --report-unused-disable-directives test/", "prepare": "husky", "prepublishOnly": "npm run build", "test": "npm run lint && npm run build && npm run test:expectation-chrome && npm run test:expectation-firefox && npm run test:expectation-node && npm run test:unit-browser && npm run test:unit-node", "test:expectation-chrome": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"expectation\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome\" ]; then npx vitest --config config/vitest/expectation-chrome-current.ts; fi", "test:expectation-firefox": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"expectation\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"firefox\" ]; then npx vitest --config config/vitest/expectation-firefox-current.ts; fi", "test:expectation-node": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"expectation\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"node\" ]; then npx vitest --config config/vitest/expectation-node.ts; fi", "test:unit-browser": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"unit\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome\" -o \"$TARGET\" = \"firefox\" -o \"$TARGET\" = \"safari\" ]; then npx vitest --config config/vitest/unit.ts; fi", "test:unit-node": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"unit\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"node\" ]; then npx vitest --browser.enabled false --config config/vitest/unit.ts; fi" }, "types": "build/es2019/module.d.ts", "version": "10.0.1" }