@thi.ng/random
Version:
Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation
164 lines (163 loc) • 3.52 kB
JSON
{
"name": "@thi.ng/random",
"version": "4.1.35",
"description": "Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation",
"type": "module",
"module": "./index.js",
"typings": "./index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/thi-ng/umbrella.git"
},
"homepage": "https://thi.ng/random",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/postspectacular"
},
{
"type": "patreon",
"url": "https://patreon.com/thing_umbrella"
},
{
"type": "liberapay",
"url": "https://liberapay.com/thi.ng"
}
],
"author": "Karsten Schmidt (https://thi.ng)",
"license": "Apache-2.0",
"scripts": {
"build": "yarn build:esbuild && yarn build:decl",
"build:decl": "tsc --declaration --emitDeclarationOnly",
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
"clean": "bun ../../tools/src/clean-package.ts distributions",
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
"pub": "npm publish --access public",
"test": "bun test",
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
},
"dependencies": {
"@thi.ng/api": "^8.12.10",
"@thi.ng/errors": "^2.5.50"
},
"devDependencies": {
"esbuild": "^0.27.0",
"typedoc": "^0.28.14",
"typescript": "^5.9.3"
},
"keywords": [
"binary",
"crypto",
"datastructure",
"distribution",
"exponential",
"gaussian",
"generator",
"geometric",
"normal",
"prng",
"random",
"typedarray",
"typescript",
"uniform",
"weighted"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
},
"files": [
"./*.js",
"./*.d.ts",
"distributions"
],
"exports": {
".": {
"default": "./index.js"
},
"./api": {
"default": "./api.js"
},
"./arandom": {
"default": "./arandom.js"
},
"./coin": {
"default": "./coin.js"
},
"./constants": {
"default": "./constants.js"
},
"./crypto": {
"default": "./crypto.js"
},
"./distributions/exponential": {
"default": "./distributions/exponential.js"
},
"./distributions/gaussian": {
"default": "./distributions/gaussian.js"
},
"./distributions/geometric": {
"default": "./distributions/geometric.js"
},
"./distributions/normal": {
"default": "./distributions/normal.js"
},
"./distributions/uniform": {
"default": "./distributions/uniform.js"
},
"./pick-random": {
"default": "./pick-random.js"
},
"./random-bytes": {
"default": "./random-bytes.js"
},
"./random-id": {
"default": "./random-id.js"
},
"./sfc32": {
"default": "./sfc32.js"
},
"./smush32": {
"default": "./smush32.js"
},
"./system": {
"default": "./system.js"
},
"./unique-indices": {
"default": "./unique-indices.js"
},
"./weighted-probability": {
"default": "./weighted-probability.js"
},
"./weighted-random": {
"default": "./weighted-random.js"
},
"./wrapped": {
"default": "./wrapped.js"
},
"./xorshift128": {
"default": "./xorshift128.js"
},
"./xorwow": {
"default": "./xorwow.js"
},
"./xoshiro128": {
"default": "./xoshiro128.js"
},
"./xsadd": {
"default": "./xsadd.js"
}
},
"thi.ng": {
"alias": "rnd",
"year": 2015,
"related": [
"ksuid"
]
},
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
}