{"_id":"@agencyanalytics/colorthief","_rev":"4-bc701d2fbe87d17f3e36f397a2ac1aa0","name":"@agencyanalytics/colorthief","dist-tags":{"latest":"2.3.3"},"versions":{"2.3.2":{"name":"@agencyanalytics/colorthief","version":"2.3.2","private":false,"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":"git+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":"cypress open","test:node":"mocha"},"devDependencies":{"@node-minify/core":"^4.0.5","@node-minify/uglify-es":"^4.0.5","chai":"^4.2.0","chai-as-promised":"^7.1.1","cypress":"^3.4.0","eslint":"^5.16.0","http-server":"^0.11.1","microbundle":"^0.11.0","mocha":"^6.2.0","mustache":"^3.0.1"},"dependencies":{"get-pixels":"^3.3.2","quantize":"github:lokesh/quantize"},"gitHead":"ef231c711309dc32be1efa83bd4da7c0ed21cd6e","bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"_id":"@agencyanalytics/colorthief@2.3.2","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-M/4DPv3i0rCLSCU3seRnG9BV0lM7AM7tGICxPfo3oUDVaGjB59LxBMKuNfNk+52BYT8L+YCrhH4Q+ZUDzZictw==","shasum":"ec39214683ec512efa233838e644c25e08c12988","tarball":"https://registry.npmjs.org/@agencyanalytics/colorthief/-/colorthief-2.3.2.tgz","fileCount":42,"unpackedSize":557946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNGiyCRA9TVsSAnZWagAAC7UP/28n7Tu3SfcYDmTrrY+9\nDGdD5gWsWhhznMvqdKHgAx05DgATGteRxbBOybrVPXE4F/Wo6Sdq9dssL0hK\nLiT2o7XNaRB/SOaFF9OAcCcbiReOpnlwC1r5IugCRpbtIB0fRfg4pyqzbt2O\nh3x4ZJqGeISM3G/m6YBYi+C4DMEc/Mhzp6bijLVXeYv0by0UaBe7XkPA1ViN\nPc3B+lhh99w8LD+hJ9ZQWX80iWXFm7QBu6LDedUVbP6pFCTSCGxcXy2cKxTR\n2qVygvivp+KI2Ef8CHYTNrM1xIvcIT3IBq7L4O3/e4y5prGGcUmNglxfbTtW\n15axa3QR20KHnjTeb0925BJ9s51xAUhOIsAxAQy2RSjokQk6lhDMY48Gpeem\n7rBQlvkKmrWDbBsD7a4HOST7WbDVd2dVUxEzQWP1ZGuCXxAK0r5uUv5IF0yU\nG66mmsNAQQDMpy3wXnxZNFJdJaQOcO6+NMRppyNzxe8L07QhBs4M+AKiJwRR\neSt+N+4pz5Y/v/gSjw9Qwl4tpT+DPsF07mtd7tR7No/hGSnXQyvvLIQwGM5w\nNPI9MmgTZ/iGEWLtxlTp6pWYj7timH6neWWDKInHFDYPaKgriegMgotZZpXS\nk50uSxyeaagq3uTMb7ujH2iDd2e9ZuHSS8QcsYXJI9p47llF7gm1uwj7itd6\nIYAd\r\n=EoBB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBm3Xqo/j2hgHHAuhyCCu90n2EDhkyITsauaUuBl3RPQAiBX7rNGAruFMLVLazsScQeGjsIYXfhvlKHvHfGEpbobSA=="}]},"_npmUser":{"name":"xuzrus","email":"jeremy.fmcc@gmail.com"},"directories":{},"maintainers":[{"name":"xuzrus","email":"jeremy.fmcc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorthief_2.3.2_1614047409377_0.7833202719951433"},"_hasShrinkwrap":false},"2.3.3":{"name":"@agencyanalytics/colorthief","version":"2.3.3","private":false,"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":"git+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":"cypress open","test:node":"mocha"},"devDependencies":{"@node-minify/core":"^4.0.5","@node-minify/uglify-es":"^4.0.5","chai":"^4.2.0","chai-as-promised":"^7.1.1","cypress":"^3.4.0","eslint":"^5.16.0","http-server":"^0.11.1","microbundle":"^0.11.0","mocha":"^6.2.0","mustache":"^3.0.1"},"dependencies":{"get-pixels":"^3.3.2","@agencyanalytics/quantize":"1.2.1"},"gitHead":"ef231c711309dc32be1efa83bd4da7c0ed21cd6e","bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"_id":"@agencyanalytics/colorthief@2.3.3","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uK/XiLARnazhWCjbv3lvsY6mlLPa2UL844VkWjIgrjtgiryfIoEp4ETYAzkUCmkZD5qTFlw6LLKBhu7PkvfZ1w==","shasum":"34ce3a054b1bc6b03bccb6bbd95f336f0d3828a4","tarball":"https://registry.npmjs.org/@agencyanalytics/colorthief/-/colorthief-2.3.3.tgz","fileCount":42,"unpackedSize":557963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1wC4CRA9TVsSAnZWagAAXP0P/iddZn7Bm+ja1WGq3cIs\nO3N5jd0dLQ/hC+5og6aKiVGlI2b3kzwz2evzlDMPl9ZltwrskuqeIGztBmwR\nAIWK1dVXCacXo0wJV9pE9ViqpZExP1h6v748E+Xu7gPmk42t3AARNMueIC5i\nSKyrS7j/DTpPzRInfU+Tbv5XBLFhsGhlHP64oAsZnT7S5RhuuxDTCyl5NxJC\nSKm7bHAZAxzmtFtvBauWDhfLAQ+j9l+scVl70L6+AVuij5UWDsK81eUUag/a\n5ZaKWzODT87pPI3OKiMBHAiqHGgkKnqwOPHg6PNhyYhDIfYSzQV5cfAmJ5qc\nL74weXMDjW1T217ygbhn0z/ta5rfH2Q16KrkxTL5BP/IocKztHnWMCade6Zi\nlSaL+GZ+60QalpAY6dMz1f3HQPUc9kKxLGPsVe8AZJZBquNzOZXDSh28A4PL\n1Zj8OGKU35LELvdpq6gNl+xbuDI7u+UokdEPgKesJfdWKVidj07Ea17mecjp\nvLrfqCYn/a+RGCZPkJitPn0gLiAWXbjA80xbLv7VSHY9BFH6pf0JSaqXb+93\nQ/0h7IoGW/Y3mXcZNCwY3sg60b0YMkpiUxu9kL11tm/8KVJYS3imLYd0+XbB\nJKZAhnkfxzE1MXHh7T9F2BK/8w9owBouXkLwtJ/wnK+t1qAQ1NJ7+gEM1FvK\nu0tn\r\n=6t6c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB15neXEPuyTxr4QWrxoW/xhTRA1f3A64U6KX+9QS7bQAiB03Z6kJ3eyVhO+sgupr403l9Rh2IfMST/7zkA4LhzyEQ=="}]},"_npmUser":{"name":"xuzrus","email":"jeremy.fmcc@gmail.com"},"directories":{},"maintainers":[{"name":"xuzrus","email":"jeremy.fmcc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorthief_2.3.3_1614047766710_0.627883244705111"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-23T02:30:09.132Z","2.3.2":"2021-02-23T02:30:09.940Z","modified":"2022-04-04T11:55:23.596Z","2.3.3":"2021-02-23T02:36:06.878Z"},"maintainers":[{"email":"jeremy.mcconnell@agencyanalytics.com","name":"jm-agencyanalytics"},{"email":"jeremy.fmcc@gmail.com","name":"xuzrus"}],"description":"Get the dominant color or color palette from an image.","homepage":"http://lokeshdhakar.com/projects/color-thief/","keywords":["color","palette","sampling","image","picture","photo","canvas"],"repository":{"type":"git","url":"git+https://github.com/lokesh/color-thief.git"},"author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"license":"MIT","readme":"\r\n# Color Thief\r\n\r\nGrab the color palette from an image using just Javascript.Works in the browser and in Node.\r\n\r\n### View the [demo page](https://lokeshdhakar.com/projects/color-thief/) for examples, API docs, and more.\r\n\r\n---\r\n\r\n## Contributing\r\n\r\n### Project structure\r\n\r\n+ `build/` - Simple script that copies and renames files into the /dist folder.\r\n+ `cypress/` - Browsers tests.\r\n+ `dist/` - Generated distribution files created by [microbundle](https://github.com/developit/microbundle) package and a couple of files copied via build script.\r\n+ `examples/` - CSS, JS, and Images for the index.html example page.\r\n+ `src/color-thief-node.js` - Source for the Node (commonjs) compatible version of the script.\r\n+ `src/color-thief.js` - Source for the browser (ES6, AMD, Global var) compatible version of the script.\r\n+ `src/core.js` - Functions shared between the node and browser versions of the script.\r\n+ `test/` - Node integration tests. Uses Chai.\r\n+ `index.html` - Example page.\r\n\r\n### Running tests\r\n\r\nThere are two sets of tests:\r\n\r\n1. Browser tests run with [Cypress](https://www.cypress.io)\r\n2. Node tests run with [Karma](https://karma-runner.github.io/latest/index.html) and utilizing [Mocha](https://mochajs.org/)\r\n\r\nTo run both the browser and Node tests:\r\n\r\n- `npm run dev` to start local server.\r\n- `npm run test`\r\n\r\nTo run just the browser tests with the Cypress UI:\r\n\r\n- `npm run dev` to start local server\r\n- `npm run test:browser`\r\n\r\nTo run just the Node tests:\r\n\r\n- `npm run test:node`\r\n\r\n\r\n### Adding tests\r\n\r\n- Update `cypress/test-pages/index.html` as needed or create a new test page if you need new examples.\r\n- Add new tests in `cypress/integration/apis_spec.js`\r\n\r\n### Making a new release\r\n\r\n- Merge `dev` into `master`\r\n- Pull down `master`\r\n- Update version number in `src/color-thief.js` and `package.json`\r\n- Run `npm run build`\r\n- Commit and push built files back up to `master`\r\n- Create a new Github release along with tag. Naming convention for both ```v2.8.1```\r\n- `npm publish`\r\n","readmeFilename":"README.md"}