File size: 4,580 Bytes
31e8457
 
ec892d6
31e8457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ec892d6
 
 
 
 
 
 
 
 
 
 
31e8457
 
 
 
 
 
 
 
 
 
 
ec892d6
 
 
 
 
 
 
 
 
 
31e8457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ec892d6
 
 
 
31e8457
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
  "name": "pure-rand",
  "version": "8.4.2",
  "description": " Pure random number generator written in TypeScript",
  "type": "commonjs",
  "exports": {
    "./package.json": "./package.json",
    "./distribution/uniformBigInt": {
      "require": "./lib/distribution/uniformBigInt.js",
      "import": "./lib/esm/distribution/uniformBigInt.js"
    },
    "./distribution/uniformInt": {
      "require": "./lib/distribution/uniformInt.js",
      "import": "./lib/esm/distribution/uniformInt.js"
    },
    "./distribution/uniformFloat32": {
      "require": "./lib/distribution/uniformFloat32.js",
      "import": "./lib/esm/distribution/uniformFloat32.js"
    },
    "./distribution/uniformFloat64": {
      "require": "./lib/distribution/uniformFloat64.js",
      "import": "./lib/esm/distribution/uniformFloat64.js"
    },
    "./generator/congruential32": {
      "require": "./lib/generator/congruential32.js",
      "import": "./lib/esm/generator/congruential32.js"
    },
    "./generator/mersenne": {
      "require": "./lib/generator/mersenne.js",
      "import": "./lib/esm/generator/mersenne.js"
    },
    "./generator/xorshift128plus": {
      "require": "./lib/generator/xorshift128plus.js",
      "import": "./lib/esm/generator/xorshift128plus.js"
    },
    "./generator/xoroshiro128plus": {
      "require": "./lib/generator/xoroshiro128plus.js",
      "import": "./lib/esm/generator/xoroshiro128plus.js"
    },
    "./types/JumpableRandomGenerator": {
      "require": "./lib/types/JumpableRandomGenerator.js",
      "import": "./lib/esm/types/JumpableRandomGenerator.js"
    },
    "./types/RandomGenerator": {
      "require": "./lib/types/RandomGenerator.js",
      "import": "./lib/esm/types/RandomGenerator.js"
    },
    "./utils/generateN": {
      "require": "./lib/utils/generateN.js",
      "import": "./lib/esm/utils/generateN.js"
    },
    "./utils/purify": {
      "require": "./lib/utils/purify.js",
      "import": "./lib/esm/utils/purify.js"
    },
    "./utils/skipN": {
      "require": "./lib/utils/skipN.js",
      "import": "./lib/esm/utils/skipN.js"
    }
  },
  "files": [
    "lib"
  ],
  "sideEffects": false,
  "devEngines": {
    "runtime": {
      "name": "node",
      "onFail": "warn"
    },
    "packageManager": {
      "name": "pnpm",
      "version": "11.8.0",
      "onFail": "download"
    }
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/dubzzz/pure-rand.git"
  },
  "author": "Nicolas DUBIEN <github@dubien.org>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/dubzzz/pure-rand/issues"
  },
  "homepage": "https://github.com/dubzzz/pure-rand#readme",
  "devDependencies": {
    "@fast-check/packaged": "^0.7.0",
    "@vitest/coverage-v8": "4.1.9",
    "fast-check": "^4.8.0",
    "oxfmt": "^0.56.0",
    "pkg-pr-new": "^0.0.75",
    "publint": "0.3.21",
    "rolldown": "1.1.3",
    "rolldown-plugin-dts": "^0.26.0",
    "typescript": "^6.0.3",
    "vitest": "^4.1.9"
  },
  "keywords": [
    "seed",
    "random",
    "prng",
    "generator",
    "pure",
    "rand",
    "mersenne",
    "random number generator",
    "fastest",
    "fast"
  ],
  "funding": [
    {
      "type": "individual",
      "url": "https://github.com/sponsors/dubzzz"
    },
    {
      "type": "opencollective",
      "url": "https://opencollective.com/fast-check"
    }
  ],
  "scripts": {
    "format:check": "oxfmt --list-different",
    "format": "oxfmt",
    "typecheck": "tsc --noEmit",
    "build": "rolldown -c && cd lib/esm/ && find . -type f -name '*.d.ts' -exec cp --parents {} ../ \\; && cp ../../package.esm-template.json package.json && cd ../..",
    "test": "vitest",
    "test-bundle": "echo \"node: $(${NODE_BIN:-node} --version)\" && rm -rf test-bundle/*.mjs && for f in test-bundle/*.cjs; do if [ -f \"$f\" ]; then echo \"Creating ${f%.cjs}.mjs\" &&  mjs=\"${f%.cjs}.mjs\" && sed -E \"s/^const (\\{[^}]*\\}) = require\\(([^)]+)\\);$/import \\1 from \\2;/; s/^const ([a-zA-Z_][a-zA-Z0-9_]*) = require\\(([^)]+)\\);$/import \\1 from \\2;/; s/^'use strict';$//\" \"$f\" > \"$mjs\"; fi; done && for f in test-bundle/*.cjs test-bundle/*.mjs; do if [ -f \"$f\" ]; then echo \"Running ${f##*/}\" && ${NODE_BIN:-node} \"$f\" || exit 1; fi; done",
    "test-legacy-bundle": "nvs add 12.17.0 && NODE_BIN=$(nvs which 12.17.0) pnpm test-bundle",
    "bench": "vitest bench",
    "bench:ci": "vitest bench --outputJson benchmark.json --compare benchmark.json",
    "bench:snap": "vitest bench --outputJson benchmark.json",
    "bench:compare": "vitest bench --compare benchmark.json"
  }
}