random
Version:
Seedable random number generator supporting many common distributions.
90 lines (89 loc) • 2.05 kB
JSON
{
"name": "random",
"version": "5.5.1",
"description": "Seedable random number generator supporting many common distributions.",
"keywords": [
"bates",
"d3-random",
"distribution",
"exponential",
"gaussian",
"generator",
"irwinhall",
"lognormal",
"normal",
"number",
"poisson",
"prng",
"probability",
"pseudorandom",
"random",
"rng",
"seedrandom",
"stats",
"uniform"
],
"license": "MIT",
"author": "Travis Fischer <travis@transitivebullsh.it>",
"repository": "transitive-bullshit/random",
"source": "./src/index.ts",
"files": [
"dist"
],
"type": "module",
"sideEffects": false,
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"pretest": "run-s build",
"test": "run-p test:*",
"test:format": "oxfmt --check",
"test:lint": "oxlint",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run",
"fix": "run-s fix:*",
"fix:format": "oxfmt",
"fix:lint": "oxlint --fix",
"prerelease": "run-s test",
"release": "release-it --only-version --github.release --github.autoGenerate"
},
"devDependencies": {
"@fisch0920/config": "^2.0.3",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^26.2.0",
"@types/seedrandom": "^3.0.8",
"npm-run-all2": "^9.0.3",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"oxlint-tsgolint": "^7.0.2001",
"release-it": "^21.0.2",
"seedrandom": "^3.0.5",
"simple-git-hooks": "^2.13.1",
"tsdown": "^0.22.14",
"tsx": "^4.23.12",
"typescript": "^7.0.2",
"vitest": "^4.1.10"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{ts,tsx}": [
"oxfmt",
"oxlint --fix"
]
},
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@11.22.0"
}