-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
59 lines (59 loc) · 1.61 KB
/
package.json
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
{
"name": "weighted-random-item-sampler",
"version": "1.0.2",
"description": "A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight, with replacement allowed between samples. In other words, an item can be sampled more than once. The sampling method utilizes a binary search optimization, making it suitable for performance-demanding applications where the set of items is large and the sampling frequency is high.",
"repository": {
"type": "git",
"url": "git+https://github.com/ori88c/weighted-random-item-sampler.git"
},
"contributors": [
"Ori Cohen (https://github.com/ori88c/)"
],
"homepage": "https://github.com/ori88c/weighted-random-item-sampler#readme",
"author": "Ori Cohen",
"license": "Apache-2.0",
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"test": "jest"
},
"keywords": [
"weight",
"weighted",
"weighted-random",
"sample",
"sampler",
"sampling",
"random",
"randomized",
"random-select",
"weighted-select",
"weighted-selector",
"weighted-selection",
"weighted-sampling",
"weighted-item",
"weighted-object",
"nodejs",
"typescript",
"ts",
"ES2020"
],
"engines": {
"node": ">=14.5.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"typescript": "^5.5.2"
},
"types": "./dist/weighted-random-item-sampler.d.ts",
"main": "./dist/weighted-random-item-sampler.js",
"files": [
"src/",
"dist/",
"README.md",
"LICENSE"
]
}