UNPKG

js-randomness-predictor

Version:

Predict Math.random output in Node, Deno, Bun, Chrome, Firefox, and Safari

124 lines (123 loc) 4.53 kB
{ "name": "js-randomness-predictor", "version": "3.2.32", "engines": { "node": ">=17.0.0 <25.0.0" }, "description": "Predict Math.random output in Node, Deno, Bun, Chrome, Firefox, and Safari", "type": "module", "types": "./dist/types/index.d.ts", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "browser": "./dist/browser/js-randomness-predictor.js", "bin": { "js-randomness-predictor": "./dist/cli/cli.js" }, "exports": { ".": { "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./browser": { "types": "./dist/types/index.d.ts", "default": "./dist/browser/index.js" } }, "files": [ "dist", "README.md" ], "lint-staged": { "*.{js,mjs,cjs,ts,tsx,json,yaml,yml,py,cpp,md}": "prettier --write" }, "prettier": { "semi": true, "singleQuote": false, "printWidth": 150 }, "scripts": { "prepublishOnly": "npm run build", "postbuild": "node postbuild.cjs", "clean:build": "rimraf dist", "clean:build:staging": "rimraf dist/staging", "build": "node npm.build.js", "build:ci": "npm run build:esm && npm run build:cjs && npm run build:cli && npm i -D @esbuild/linux-x64 && npm run minify && npm run postbuild", "build:esm": "tsc -p tsconfig/tsconfig.esm.json", "build:cjs": "tsc -p tsconfig/tsconfig.cjs.json", "build:cli": "tsc -p tsconfig/tsconfig.esm.cli.json", "build:umd": "cross-env BUILD_TARGET='umd' vite build", "build:browser:cjs": "cross-env BUILD_TARGET='cjs' vite build", "test": "npm run test:cli && npm run test:node && npm run test:bun && npm run test:deno && npm run test:firefox && npm run test:chrome && npm run test:safari", "test:imports": "node --test tests/import/*.test.*", "test:node:versions:GE:20": "tsx --test tests/node/*.test.ts", "test:node:versions:17:18:19": "node tests/node/scripts/testVersionsWithoutNodeTest.cjs", "test:node:versions:LE:16": "tsx --test tests/node/legacy/*.test.ts --color", "test:node": "npm run test:node:versions:GE:20 && npm run test:node:versions:17:18:19 && npm run test:node:versions:LE:16", "test:cli": "tsx --test tests/cli/*.test.ts", "test:bun": "bun test tests/bun/*.test.ts", "test:deno": "deno test --sloppy-imports --allow-read \"./tests/deno/*.test.ts\"", "test:firefox": "tsx --test tests/firefox/*.test.ts", "test:chrome": "tsx --test tests/chrome/*.test.ts", "test:safari": "tsx --test tests/safari/*.test.ts", "format": "prettier . --write", "lint": "eslint .", "prepare": "husky", "minify": "rollup -c", "emit:types": "tsc -p tsconfig/tsconfig.types.json --emitDeclarationOnly", "publish:main:major": "git add . && git commit --allow-empty -m \"[publish] #major\" && git push origin main", "publish:main:minor": "git add . && git commit --allow-empty -m \"[publish] #minor\" && git push origin main", "publish:main:patch": "git add . && git commit --allow-empty -m \"[publish] #patch\" && git push origin main" }, "keywords": [ "predict-javascript-math-random", "predict", "javascript", "math.random", "Math.random", "math.random predictor", "javascript random predictor", "z3", "z3-solver", "rng predict" ], "author": "Matt Oestreich", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/matthewoestreich/js-randomness-predictor.git" }, "homepage": "https://github.com/matthewoestreich/js-randomness-predictor#readme", "bugs": { "url": "https://github.com/matthewoestreich/js-randomness-predictor/issues" }, "dependencies": { "yargs": "^18.0.0", "z3-solver-jsrp": "^4.15.3-republish.1" }, "devDependencies": { "@rollup/plugin-commonjs": "^28.0.6", "@rollup/plugin-node-resolve": "^16.0.2", "@types/bun": "^1.2.22", "@types/eslint": "^9.6.1", "@types/node": "^24.3.3", "@types/yargs": "^17.0.33", "@typescript-eslint/eslint-plugin": "^8.43.0", "@typescript-eslint/parser": "^8.43.0", "bun-types": "^1.2.22", "cross-env": "^10.1.0", "eslint": "^9.35.0", "glob": "^11.0.3", "husky": "^9.1.7", "jiti": "^2.5.1", "lint-staged": "^16.2.0", "prettier": "^3.5.3", "rimraf": "^6.0.1", "rollup": "^4.52.4", "rollup-plugin-esbuild-minify": "^1.3.0", "tsx": "^4.20.5", "typescript": "^5.9.2", "vite": "^7.1.5", "vite-plugin-static-copy": "^3.1.2" } }