UNPKG

js-randomness-predictor

Version:

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

98 lines (97 loc) 3.52 kB
{ "name": "js-randomness-predictor", "version": "2.3.1", "engines": { "node": ">=17.0.0 <25.0.0" }, "description": "Predict Math.random output in Node, Deno, Bun, Chrome, Firefox, and Safari", "type": "module", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "bin": { "js-randomness-predictor": "./dist/esm/cli/js-randomness-predictor.js" }, "files": [ "dist", "README.md" ], "lint-staged": { "*.{js,mjs,cjs,ts,tsx,json,yaml,yml,py,cpp,md}": "prettier --write" }, "scripts": { "prepublishOnly": "npm run build && npm run build:umd", "build": "rimraf dist && npm run build:esm && npm run build:cjs", "postbuild": "node postbuild.cjs", "build:esm": "tsc -p tsconfig.esm.json", "build:cjs": "tsc -p tsconfig.cjs.json", "build:umd": "vite build", "vite:serve": "vite serve", "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": "tsx --test tests/bun/*.test.ts", "test:deno": "tsx --test 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", "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", "format": "prettier . \"!cdn/**/*\" --write", "lint": "eslint .", "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", "prepare": "husky" }, "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": "^4.15.3" }, "devDependencies": { "@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", "buffer": "^6.0.3", "eslint": "^9.35.0", "husky": "^9.1.7", "jiti": "^2.5.1", "lint-staged": "^16.2.0", "prettier": "^3.5.3", "rimraf": "^6.0.1", "tsx": "^4.20.5", "typescript": "^5.9.2", "vite": "^7.1.5", "vite-plugin-static-copy": "^3.1.2" } }