Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
81 lines (81 loc) · 2.3 KB
/
Copy pathpackage.json
File metadata and controls
81 lines (81 loc) · 2.3 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"name": "chapterize-js",
"displayName": "Chapterize JS",
"globalName": "Chapterize",
"version": "0.1.0",
"description": "Automatic, accessible table of contents and scroll spy for any page: add data-chapter to a nav and it builds the links, highlights the current section and glides a marker. Zero dependencies, zero JS config, works in every framework.",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./types/index.d.ts",
"unpkg": "./dist/global.min.js",
"jsdelivr": "./dist/global.min.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./auto": {
"types": "./types/auto.d.ts",
"import": "./dist/auto.js",
"require": "./dist/auto.cjs",
"default": "./dist/auto.js"
},
"./global": "./dist/global.min.js",
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"files": [
"dist",
"types",
"CHANGELOG.md"
],
"sideEffects": [
"./dist/auto.js",
"./dist/auto.min.js",
"./dist/auto.cjs",
"./dist/global.js",
"./dist/global.min.js"
],
"scripts": {
"build": "node scripts/build.mjs",
"size": "node scripts/build.mjs --size",
"test": "npm run build && node --test --test-concurrency=1 test/*.test.mjs",
"test:firefox": "TEST_BROWSER=firefox npm test",
"test:webkit": "TEST_BROWSER=webkit npm test",
"test:all": "npm test && npm run test:firefox && npm run test:webkit",
"test:types": "npx -y -p typescript@5 tsc -p test/types",
"serve": "node scripts/serve.mjs"
},
"keywords": [
"chapterize",
"scrollspy",
"scroll-spy",
"table-of-contents",
"toc",
"tocbot-alternative",
"gumshoe-alternative",
"intersection-observer",
"accessibility",
"aria-current",
"vanilla-js",
"zero-dependencies",
"framework-agnostic"
],
"author": "Byron Johnson",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/byronjohnson/chapterize-js.git"
},
"homepage": "https://chapterizejs.com",
"bugs": {
"url": "https://github.com/byronjohnson/chapterize-js/issues"
},
"devDependencies": {
"esbuild": "^0.28.2",
"playwright-core": "^1.64.1"
}
}