shuffrand
Version:
Cryptographically secure randomness and shuffling — with soul.
177 lines (176 loc) • 4.4 kB
JSON
{
"name": "shuffrand",
"version": "1.6.0",
"type": "module",
"description": "Cryptographically secure randomness and shuffling — with soul.",
"sideEffects": false,
"main": "./dist/index.es.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"README.md",
"LICENSE",
"SECURITY.md",
"CHANGELOG.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.es.js"
},
"./random": {
"types": "./dist/random.d.ts",
"import": "./dist/random.es.js"
},
"./shuffle": {
"types": "./dist/shuffle.d.ts",
"import": "./dist/shuffle.es.js"
},
"./string": {
"types": "./dist/string.d.ts",
"import": "./dist/string.es.js"
},
"./constants": {
"types": "./dist/constants.d.ts",
"import": "./dist/constants.es.js"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.es.js"
}
},
"scripts": {
"prebuild": "pnpm run clean",
"build": "vite build",
"test": "pnpm run clean && pnpm run build && tsc --project tsconfig.test.json && vitest",
"test:coverage": "vitest run --coverage",
"clean": "node clean.mjs",
"lint": "eslint . --ext .ts",
"format": "prettier --write \"**/*.{ts,js,json,yml}\"",
"preflight": "pnpm test && pnpm run format && pnpm run lint",
"prepublishOnly": "pnpm build"
},
"keywords": [
"access",
"algorithm",
"alphanumeric",
"array",
"auth",
"automation",
"chance",
"coin-flip",
"critical-hit",
"crypto",
"cryptographic",
"D&D",
"d20",
"d6",
"decryption",
"destructive",
"dice",
"dungeon-master",
"encryption",
"entropy",
"fair",
"Fisher",
"Fisher–Yates",
"game",
"PvE",
"generator",
"procedural-generation",
"maker",
"hashing",
"hearthstone",
"identifier",
"in-place",
"javascript",
"js",
"keys",
"Knuth",
"lib",
"lodash",
"lottery",
"masking",
"mock-data",
"nondestructive",
"number",
"numeric",
"permutation",
"probability",
"probabilistic",
"RNG",
"PRNG",
"CSPRNG",
"RNGesus",
"ramda",
"random",
"randomness",
"roll",
"salts",
"scramble",
"secure",
"seed",
"shuffle",
"sophisticated",
"string",
"toss",
"token",
"TTRPG",
"ts",
"typescript",
"unbiased",
"unique",
"unpredictable",
"utility",
"uuid",
"web-crypto",
"card",
"roulette",
"lottery",
"cutting-edge",
"high-quality",
"lightweight",
"ES-Modules",
"fully-typed",
"runtime-validation",
"next-gen",
"draw",
"tree-shaking",
"granular-control",
"monorepo",
"lower-bound",
"upper-bound",
"Yates"
],
"author": "Doron Brayer <doronbrayer@outlook.com>",
"license": "MIT",
"homepage": "https://github.com/DoronBrayer/shuffrand",
"repository": {
"type": "git",
"url": "git+https://github.com/DoronBrayer/shuffrand.git"
},
"bugs": {
"url": "https://github.com/DoronBrayer/shuffrand/issues"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@typescript-eslint/eslint-plugin": "^8.36.0",
"@typescript-eslint/parser": "^8.36.0",
"eslint": "^9.30.1",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.1",
"prettier": "^3.6.2",
"typescript": "^5.9.0",
"typescript-eslint": "^8.36.0",
"vite": "^7.0.4",
"vite-plugin-dts": "^3.9.1",
"vitest": "4.0.0-beta.5"
},
"dependencies": {
"arktype": "^2.1.20"
}
}