-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpackage.json
More file actions
108 lines (108 loc) · 3.65 KB
/
Copy pathpackage.json
File metadata and controls
108 lines (108 loc) · 3.65 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
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
{
"name": "ansis",
"version": "4.4.0",
"description": "A small and fast ANSI color library",
"keywords": [
"ansi",
"color",
"colors",
"styles",
"console",
"terminal",
"xterm",
"cli",
"log",
"rgb",
"truecolor",
"FORCE_COLOR",
"NO_COLOR"
],
"license": "ISC",
"author": "webdiscus (https://github.com/webdiscus)",
"maintainers": [
"webdiscus (https://github.com/webdiscus)"
],
"homepage": "https://github.com/webdiscus/ansis",
"bugs": {
"url": "https://github.com/webdiscus/ansis/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/webdiscus/ansis.git"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"sideEffects": false,
"type": "module",
"types": "./src/index.d.ts",
"exports": {
".": {
"types": "./src/index.d.ts",
"import": "./src/index.mjs",
"require": "./src/index.cjs"
}
},
"scripts": {
"build": "rollup -c",
"postinstall": "npm run build && npm i ansis -D",
"demo": "node --experimental-modules ./examples/index.js",
"color-checker": "npm run color-checker --prefix ./test/manual/color-checker",
"bench": "(cd ./bench/ && npm install); node ./bench/index.js",
"bench:truecolor": "(cd ./bench/ && npm install); node bench/truecolor.bench.js",
"compare": "(cd ./compare/ && npm install); node ./compare/index.js",
"test": "vitest run",
"test:types": "vitest run ./test/cases/types.test.ts",
"test:unit": "vitest run ./test/cases/unit.test.js",
"test:no-color": "vitest run ./test/cases/color-support/no-color.test.js",
"test:ansi16": "vitest run ./test/cases/color-support/ansi16.test.js",
"test:ansi256": "vitest run ./test/cases/color-support/ansi256.test.js",
"test:functional": "vitest run ./test/cases/api/*.test.js ./test/cases/extend/extend-colors.test.js",
"test:flags": "vitest run ./test/cases/color-support/cli-flags-env-vars.test.js",
"test:package": "vitest run ./test/cases/package-mode.test.js",
"test:cjs": "node ./test/package/cjs/test.cjs",
"test:esm": "node ./test/package/esm/test.mjs",
"test:tsc": "vitest run ./test/cases/ts-compiler.test.js",
"test:levels": "vitest run ./test/cases/color-support/detect-colors.test.js",
"test:range": "vitest run ./test/cases/range-error.test.js",
"test:deno": "deno test --allow-env",
"test-deno:manual": "deno test ./test-deno/manual/nocolor-deny.test.js",
"test-deno:debug": "deno ./test-deno/manual/deno-debug.js",
"test-deno:truecolor": "deno test ./test-deno/cases/truecolor.test.js --allow-env",
"test:coverage": "vitest run --coverage",
"pack:check": "npm pack ./dist/node14 --dry-run",
"publish:public-node10": "(npm run build) && npm publish ./dist/node10 --tag node10",
"publish:public": "(npm run build) && npm publish ./dist/node14 --access public",
"publish:beta": "(npm run build) && npm publish ./dist/node14 --tag beta"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"@babel/core": "^7.27.1",
"@babel/preset-env": "^7.27.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@types/node": "^22.15.17",
"@vitest/coverage-v8": "^3.1.1",
"ansis": "file:dist/node14",
"css-color-names": "1.0.1",
"esbuild": "0.25.2",
"prettier": "3.5.3",
"rimraf": "6.0.1",
"rollup": "4.40.2",
"rollup-plugin-copy": "3.5.0",
"swc": "1.0.11",
"terser": "5.39.0",
"tsup": "8.3.6",
"typescript": "5.4.5",
"vitest": "^3.1.3"
},
"overrides": {
"rollup-plugin-copy": {
"globby": "11.0.0"
}
}
}