random
Version:
Seedable random number generator supporting many common distributions.
87 lines (86 loc) • 2.15 kB
JSON
{
"name": "random",
"version": "3.0.5",
"description": "Seedable random number generator supporting many common distributions.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.esm.js",
"types": "dist/cjs/index.d.ts",
"repository": "transitive-bullshit/random",
"author": "Travis Fischer <travis@transitivebullsh.it>",
"type": "module",
"sideEffects": false,
"license": "MIT",
"engines": {
"node": ">=10"
},
"scripts": {
"start": "run-s build:watch",
"build": "tsc -b",
"build:watch": "tsc -b --watch",
"postbuild": "echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"prebuild": "run-s clean",
"clean": "del dist",
"prepublishOnly": "run-s build",
"docs": "update-markdown-jsdoc -f dist/random.js --shallow",
"pretest": "run-s build",
"test": "run-s test:*",
"test:unit": "ava -v",
"test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check",
"test:lint": "eslint '{src,test}/**/*.ts'"
},
"keywords": [
"random",
"number",
"generator",
"rng",
"prng",
"stats",
"d3-random",
"seedrandom",
"distribution",
"pseudorandom",
"uniform",
"normal",
"gaussian",
"lognormal",
"poisson",
"exponential",
"irwinhall",
"bates"
],
"dependencies": {
"seedrandom": "^3.0.5"
},
"devDependencies": {
"@ava/typescript": "^1.1.1",
"@types/node": "^14.14.31",
"@types/seedrandom": "^2.4.28",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"ava": "^3.15.0",
"del-cli": "^3.0.1",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.3.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.5",
"update-markdown-jsdoc": "^1.0.11"
},
"files": [
"dist"
],
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
]
}
}