fast-average-color
Version:
A simple library that calculates the average color of images, videos and canvas in browser environment.
73 lines (72 loc) • 2.06 kB
JSON
{
"name": "fast-average-color",
"description": "A simple library that calculates the average color of images, videos and canvas in browser environment.",
"version": "9.5.1",
"author": {
"name": "Denis Seleznev",
"email": "hcodes@yandex.ru",
"url": "https://github.com/fast-average-color/fast-average-color"
},
"main": "dist/index.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.browser.js",
"jsdelivr": "dist/index.browser.js",
"homepage": "https://github.com/fast-average-color/fast-average-color",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/fast-average-color/fast-average-color.git"
},
"keywords": [
"fast",
"average",
"color",
"colour"
],
"engines": {
"node": ">= 12"
},
"typings": "./dist/index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE"
],
"devDependencies": {
"@eslint/js": "^9.39.3",
"@rollup/plugin-typescript": "^12.3.0",
"@types/jest": "^30.0.0",
"@typescript-eslint/eslint-plugin": "^8.57.2",
"@typescript-eslint/parser": "^8.57.2",
"del-cli": "^7.0.0",
"eslint": "^9.39.3",
"globals": "^17.4.0",
"husky": "^9.1.7",
"jest": "^30.3.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^30.3.0",
"rollup": "^4.60.0",
"terser": "^5.46.1",
"ts-jest": "^29.4.6",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.2"
},
"husky": {
"hooks": {
"pre-commit": "npm test"
}
},
"scripts": {
"build": "npm run clean && npm run rollup && npm run minify && npm run copyright",
"clean": "del dist/*",
"minify": "terser ./dist/index.browser.js -o ./dist/index.browser.min.js -c -m",
"copyright": "node tools/copyright.mjs dist/index.*js",
"rollup": "rollup --config rollup.config.mjs",
"test": "npm run typecheck && npm run eslint && npm run unit-test",
"eslint": "eslint .",
"unit-test": "jest .",
"prepare": "npm run build",
"typecheck": "tsc --noEmit"
}
}