mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 05:44:24 +00:00
66 lines
2.0 KiB
JSON
66 lines
2.0 KiB
JSON
{
|
|
"name": "colorthief",
|
|
"version": "2.4.0",
|
|
"author": {
|
|
"name": "Lokesh Dhakar",
|
|
"email": "lokesh.dhakar@gmail.com",
|
|
"url": "http://lokeshdhakar.com/"
|
|
},
|
|
"description": "Get the dominant color or color palette from an image.",
|
|
"keywords": [
|
|
"color",
|
|
"palette",
|
|
"sampling",
|
|
"image",
|
|
"picture",
|
|
"photo",
|
|
"canvas"
|
|
],
|
|
"type": "module",
|
|
"homepage": "http://lokeshdhakar.com/projects/color-thief/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/lokesh/color-thief.git"
|
|
},
|
|
"license": "MIT",
|
|
"source": "src/color-thief.ts",
|
|
"main": "dist/color-thief-node.cjs",
|
|
"browser": {
|
|
"dist/color-thief.mjs": "dist/color-thief.mjs",
|
|
"dist/color-thief.js": "dist/color-thief.js"
|
|
},
|
|
"module": "dist/color-thief-node.mjs",
|
|
"umd:main": "dist/color-thief.umd.js",
|
|
"amdName": "ColorThief",
|
|
"scripts": {
|
|
"build": "tsc --declaration && microbundle build --no-sourcemap built/*.js && node ./build/build.mjs",
|
|
"watch": "microbundle watch --no-sourcemap",
|
|
"dev": "http-server",
|
|
"test": "mocha && cypress run --config video=false",
|
|
"test:browser": "./node_modules/.bin/cypress run --headed",
|
|
"test:node": "mocha",
|
|
"cypress": "./node_modules/.bin/cypress open",
|
|
"lint": "eslint ./src/*"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.5.0",
|
|
"@stylistic/eslint-plugin": "^2.3.0",
|
|
"@types/eslint__js": "^8.42.3",
|
|
"chai": "^5.1.1",
|
|
"chai-as-promised": "^8.0.0",
|
|
"cypress": "^13.12.0",
|
|
"eslint": "^8.57.0",
|
|
"http-server": "^14.1.1",
|
|
"microbundle": "^0.15.1",
|
|
"mocha": "^10.5.2",
|
|
"mustache": "^4.2.0",
|
|
"typescript": "^5.5.2",
|
|
"typescript-eslint": "^7.14.1"
|
|
},
|
|
"dependencies": {
|
|
"@lokesh.dhakar/quantize": "^1.3.0",
|
|
"ndarray-pixels": "^4.1.0",
|
|
"sharp": "^0.33.4"
|
|
}
|
|
}
|