mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 13:54:25 +00:00
- `/dist/color-thief.umd.js`: UMD module. For simple script tag loading that exposes a global variable or for RequireJS AMD support. - `/dist/color-thief.js`: CommonJS module. Entry point for Node.js and Browserify. - `/dist/color-thief.mjs`: ES6 module. For modern browsers as well as Webpack and Rollup. - `/dist/color-thief.min.js`: Duplicate of `/dist/color-thief.umd.js`. Kept around to maintain backwards compatibility.
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"name": "colorthief",
|
|
"version": "2.2.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"
|
|
],
|
|
"homepage": "http://lokeshdhakar.com/projects/color-thief/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/lokesh/color-thief.git"
|
|
},
|
|
"license": "MIT",
|
|
"source": "src/color-thief.js",
|
|
"main": "dist/color-thief.js",
|
|
"module": "dist/color-thief.mjs",
|
|
"umd:main": "dist/color-thief.umd.js",
|
|
"amdName": "ColorThief",
|
|
"scripts": {
|
|
"build": "microbundle; node ./build/build.js",
|
|
"dev": "./node_modules/http-server/bin/http-server",
|
|
"test": "./node_modules/.bin/cypress open"
|
|
},
|
|
"devDependencies": {
|
|
"@node-minify/core": "^4.0.5",
|
|
"@node-minify/uglify-es": "^4.0.5",
|
|
"cypress": "^3.4.0",
|
|
"eslint": "^5.16.0",
|
|
"http-server": "^0.11.1",
|
|
"microbundle": "^0.11.0",
|
|
"mustache": "^3.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=10.15.3"
|
|
}
|
|
}
|