-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathpackage.json
More file actions
114 lines (114 loc) · 3.23 KB
/
package.json
File metadata and controls
114 lines (114 loc) · 3.23 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
109
110
111
112
113
114
{
"name": "colorthief",
"version": "3.3.1",
"type": "module",
"author": {
"name": "Lokesh Dhakar",
"email": "lokesh.dhakar@gmail.com",
"url": "http://lokeshdhakar.com/"
},
"description": "Extract dominant colors and palettes from images — TypeScript, OKLCH, semantic swatches, live video extraction.",
"keywords": [
"color",
"palette",
"sampling",
"image",
"picture",
"photo",
"canvas",
"oklch",
"swatch"
],
"homepage": "http://lokeshdhakar.com/projects/color-thief/",
"repository": {
"type": "git",
"url": "git+https://github.com/lokesh/color-thief.git"
},
"license": "MIT",
"bin": {
"colorthief": "dist/cli.js"
},
"files": [
"dist/",
"src/"
],
"exports": {
".": {
"browser": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/index.browser.js"
},
"require": {
"types": "./dist/types/index.d.cts",
"default": "./dist/index.browser.cjs"
}
},
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/types/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./internals": {
"browser": {
"import": {
"types": "./dist/types/internals.browser.d.ts",
"default": "./dist/internals.browser.js"
},
"require": {
"types": "./dist/types/internals.browser.d.cts",
"default": "./dist/internals.browser.cjs"
}
},
"import": {
"types": "./dist/types/internals.d.ts",
"default": "./dist/internals.js"
},
"require": {
"types": "./dist/types/internals.d.cts",
"default": "./dist/internals.cjs"
}
},
"./cli": {
"import": "./dist/cli.js"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/types/index.d.ts",
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsup",
"watch": "tsup --watch",
"dev": "http-server",
"test": "mocha && cypress run --config video=false",
"test:node": "mocha",
"test:browser": "cypress run --headed --browser chrome",
"cypress": "cypress open",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^20.11.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"cypress": "^13.15.0",
"http-server": "^14.1.1",
"mocha": "^10.2.0",
"mustache": "^3.0.1",
"sharp": "^0.34.5",
"tsup": "^8.0.0",
"typescript": "^5.3.0"
},
"peerDependencies": {
"sharp": ">=0.33.0"
},
"peerDependenciesMeta": {
"sharp": {
"optional": true
}
}
}