js-randomness-predictor
Version:
Predict Math.random output in Node, Deno, Bun, Chrome, Firefox, and Safari
176 lines (175 loc) • 5.6 kB
JSON
{
"name": "js-randomness-predictor",
"version": "4.0.2",
"engines": {
"node": ">=17.0.0 <27.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/index.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"
},
"standard-version": {
"tagPrefix": "",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "build",
"section": "Build System"
},
{
"type": "ci",
"section": "CI"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"section": "Styles"
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "test",
"section": "Tests"
},
{
"type": "chore",
"section": "Chores"
}
]
},
"prettier": {
"semi": true,
"singleQuote": false,
"printWidth": 150
},
"scripts": {
"prepublishOnly": "npm run build",
"postbuild": "node build/postbuild.cjs",
"clean:build": "rimraf dist",
"clean:build:staging": "rimraf dist/staging",
"build": "node build/runCommands.js ./npm.run.build.json",
"build:ci": "npm run build:esm && npm run build:cjs && npm run build:cli && npm run minify && npm run postbuild",
"build:ci:local": "npm run build:esm && npm run build:cjs && npm run build:cli && npm run minify && npm run postbuild",
"build:esm": "tsc -p build/tsconfig/tsconfig.esm.json",
"build:cjs": "tsc -p build/tsconfig/tsconfig.cjs.json",
"build:cli": "tsc -p build/tsconfig/tsconfig.esm.cli.json",
"build:umd": "cross-env BUILD_TARGET='umd' vite --config build/vite.config.ts build",
"build:browser:cjs": "cross-env BUILD_TARGET='cjs' vite --config build/vite.config.ts build",
"test": "npm run build && npm run test:nobuild",
"test:nobuild": "node build/runCommands.js ./npm.run.test.json",
"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 ./build/rollup.config.cjs",
"emit:types": "tsc -p build/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.1.0",
"husky": "9.1.7",
"jiti": "2.5.1",
"lint-staged": "16.4.0",
"prettier": "3.5.3",
"rimraf": "6.0.1",
"rollup": "4.60.1",
"rollup-plugin-esbuild-minify": "1.3.0",
"standard-version": "9.5.0",
"tsx": "4.20.5",
"typescript": "5.9.3",
"vite": "7.3.1",
"vite-plugin-static-copy": "3.1.2"
}
}