UNPKG

node-vibrant

Version:

Extract prominent colors from an image. Supports both node and browser environment.

125 lines (124 loc) 3.02 kB
{ "name": "node-vibrant", "version": "4.0.3", "description": "Extract prominent colors from an image. Supports both node and browser environment.", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/Vibrant-Colors/node-vibrant.git", "directory": "packages/node-vibrant" }, "author": "crutchcorn", "homepage": "https://vibrant.dev", "funding": { "type": "github", "url": "https://github.com/sponsors/crutchcorn" }, "keywords": [ "color", "detection", "varation", "image", "picture", "canvas", "vibrant", "muted", "colour" ], "scripts": { "build": "vite build", "test:lib": "vitest run", "test:lib:watch": "vitest watch", "test:eslint": "eslint ./src ./__tests__", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js", "test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js", "test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js", "test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js", "test:types:ts56": "tsc", "test:build": "publint --strict" }, "dependencies": { "@types/node": "^18.15.3", "@vibrant/core": "^4.0.0", "@vibrant/generator-default": "^4.0.3", "@vibrant/image-browser": "^4.0.0", "@vibrant/image-node": "^4.0.0", "@vibrant/quantizer-mmcq": "^4.0.0" }, "devDependencies": { "@tanstack/config": "^0.15.0", "@vibrant/color": "^4.0.0", "@vitest/browser": "^2.1.8", "playwright": "^1.49.1", "vite": "^6.0.5", "vitest": "^2.1.8" }, "type": "module", "types": "dist/esm/throw.d.ts", "main": "dist/cjs/throw.cjs", "module": "dist/esm/throw.js", "exports": { ".": { "import": { "types": "./dist/esm/throw.d.ts", "default": "./dist/esm/throw.js" }, "require": { "types": "./dist/cjs/throw.d.cts", "default": "./dist/cjs/throw.cjs" } }, "./worker": { "import": { "types": "./dist/esm/worker.d.ts", "default": "./dist/esm/worker.js" }, "require": { "types": "./dist/cjs/worker.d.cts", "default": "./dist/cjs/worker.cjs" } }, "./worker.worker": { "import": { "types": "./dist/esm/worker.worker.d.ts", "default": "./dist/esm/worker.worker.js" }, "require": { "types": "./dist/cjs/worker.worker.d.cts", "default": "./dist/cjs/worker.worker.cjs" } }, "./browser": { "import": { "types": "./dist/esm/browser.d.ts", "default": "./dist/esm/browser.js" }, "require": { "types": "./dist/cjs/browser.d.cts", "default": "./dist/cjs/browser.cjs" } }, "./node": { "import": { "types": "./dist/esm/node.d.ts", "default": "./dist/esm/node.js" }, "require": { "types": "./dist/cjs/node.d.cts", "default": "./dist/cjs/node.cjs" } }, "./package.json": "./package.json" }, "sideEffects": true, "files": [ "dist", "src", "browser", "node", "worker", "worker.worker" ], "gitHead": "07a464c4c9b7e2d6783b5e471856fd7b57fb1f6f" }