UNPKG

colorthief

Version:

Get the dominant color or color palette from an image.

56 lines (55 loc) 1.66 kB
{ "name": "colorthief", "version": "2.6.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 --no-sourcemap && node ./build/build.js", "watch": "microbundle watch --no-sourcemap", "dev": "http-server", "test": "mocha && cypress run --config video=false", "test:browser": "./node_modules/.bin/cypress run --headed --browser chrome", "test:node": "mocha", "cypress": "./node_modules/.bin/cypress open" }, "devDependencies": { "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "cypress": "^13.15.0", "eslint": "^5.16.0", "http-server": "^14.1.1", "microbundle": "^0.15.0", "mocha": "^10.2.0", "mustache": "^3.0.1" }, "dependencies": { "@lokesh.dhakar/quantize": "^1.4.0", "file-type": "^16.5.3", "ndarray-pixels": "^4.1.0", "sharp": "^0.33.5" } }