UNPKG

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
{ "name": "fast-average-color", "description": "A simple library that calculates the average color of images, videos and canvas in browser environment.", "version": "9.5.0", "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.22.0", "@rollup/plugin-typescript": "^12.1.2", "@types/jest": "^29.5.14", "@typescript-eslint/eslint-plugin": "^8.27.0", "@typescript-eslint/parser": "^8.27.0", "del-cli": "^6.0.0", "eslint": "^9.22.0", "globals": "^16.0.0", "husky": "^9.1.7", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", "rollup": "^4.35.0", "terser": "^5.39.0", "ts-jest": "^29.2.6", "tslib": "^2.8.1", "typescript": "^5.8.2", "typescript-eslint": "^8.27.0" }, "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" } }