Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
62 lines (62 loc) · 1.54 KB
/
Copy pathpackage.json
File metadata and controls
62 lines (62 loc) · 1.54 KB
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
{
"name": "time-sliced",
"version": "0.1.1",
"description": "Run long loops without freezing the event loop: yield on a time budget, not every N items",
"license": "MIT",
"author": "Ankur Dubey (https://github.com/RagedPanda)",
"repository": {
"type": "git",
"url": "git+https://github.com/RagedPanda/time-sliced.git"
},
"type": "module",
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"files": [
"dist"
],
"sideEffects": false,
"engines": {
"node": ">=22"
},
"scripts": {
"build": "node -e \"fs.rmSync('dist', {recursive: true, force: true})\" && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && node scripts/mark-cjs.ts",
"typecheck": "tsc --noEmit",
"test": "node --test \"test/**/*.test.ts\"",
"coverage": "node --test --experimental-test-coverage --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 \"test/**/*.test.ts\"",
"bench": "node bench/index.ts",
"prepublishOnly": "npm run typecheck && npm test && npm run build"
},
"keywords": [
"event-loop",
"yield",
"time-slicing",
"scheduler",
"non-blocking",
"responsive",
"freeze",
"jank",
"long-task",
"setimmediate",
"electron",
"promise",
"async"
],
"devDependencies": {
"@types/async": "3.2.25",
"@types/node": "^26.6.5",
"async": "3.2.6",
"typescript": "^7.0.2"
}
}