{"_id":"@colorthief/colorthief","name":"@colorthief/colorthief","dist-tags":{"latest":"3.0.0"},"versions":{"3.0.0":{"name":"@colorthief/colorthief","version":"3.0.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":"https://github.com/colorthiefpkg/color-thief","repository":{"type":"git","url":"git+https://github.com/colorthiefpkg/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":{"@colorthief/quantize":"^2.0.2","get-pixels":"^3.3.2"},"publishConfig":{"access":"public"},"gitHead":"dff1146a44394a01781ab7ef1e72c301b4989d04","bugs":{"url":"https://github.com/colorthiefpkg/color-thief/issues"},"_id":"@colorthief/colorthief@3.0.0","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","dist":{"integrity":"sha512-8O25jNfYr46M1wU/Z9WJgSBGcUH2UlaEQxPVm+IvVPsJPUAe8RKuExtCvJpWl/qMumXajgkEnteECpzsv1o4vQ==","shasum":"ed37dff266db0dc0b6aca62eae9fceb9edf5b620","tarball":"https://registry.npmjs.org/@colorthief/colorthief/-/colorthief-3.0.0.tgz","fileCount":42,"unpackedSize":556687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIYFbkhRBmz0I7pU2p3fP0Wn4exrzfcrMOclAhWqvGaAiEAzNj3CB8XfqVvSODGVfw67IjG+VoqrZLwrci4LE+Bg4Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicN73ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmojpg//aD1/RV/gvuunIGioDQhmzUVMGqS6cxRYggBTfiow/ZBPvABz\r\nkAWk8EFYxoeYWarDVNIcvsfv+82hASUHVftgzeJPBs+zdOkEpZ1wLbHt1dKS\r\nFSzkIaQbEtTPyBe5ifTlCGiwPjp1ncokDbUqqPw9OG+/7f9sWSk8/+PkBBw9\r\nQ4p7l5k/ACshvRLo3wl4uxBMi+K5fS6geCdXhEtAAM2y69H4voybBY7IJulD\r\nMd24BnTWZSX2Ott9kwO6NDdscocnJKjiew3rdyIFmbfOolkP4FIUP4I4VcG8\r\net9C/b+cKiAvdgKdw84D0R+tdyvn5xmMGB5nRsPEMEN7ZiYi/48+JCdF0vS3\r\nn2SJ2Zb3k+PKN/QdQynLqYTX5tsO2XljvKIa4ei3atr8qLf2BmSgaD2HvjDW\r\nbKwnYKvZZMmFRZKrxnkiMGUwsWAEzw+Q+uQ86aACPxX3gmgZfXj7ka2KU42o\r\njnzpn+xnqDwTEjpGjna4/thm0rYzmcq7iK+Zxnkatmu3Rlt+G3COfV57vWCY\r\nZafpIT1+A/XaaPfmF1JPV+apIvnZeOqeQctg4KPNbRTFNz4qE6Y7Lg/skVce\r\nPb9khAgv8QVk74GAAbkRdJ9JJisliECwPLF5KWcfXLvs7umKevVVP/zm8iU8\r\nw8y15C9EixcP2SUx1PP0TiEc76hGCrvRLR0=\r\n=EeFn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mayankmohit","email":"dev@jainmohit.com"},"directories":{},"maintainers":[{"name":"mayankmohit","email":"dev@jainmohit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorthief_3.0.0_1651564278896_0.883822790678344"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-03T07:51:18.845Z","3.0.0":"2022-05-03T07:51:19.128Z","modified":"2022-05-03T07:51:19.274Z"},"maintainers":[{"name":"mayankmohit","email":"dev@jainmohit.com"}],"description":"Get the dominant color or color palette from an image.","homepage":"https://github.com/colorthiefpkg/color-thief","keywords":["color","palette","sampling","image","picture","photo","canvas"],"repository":{"type":"git","url":"git+https://github.com/colorthiefpkg/color-thief.git"},"author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"bugs":{"url":"https://github.com/colorthiefpkg/color-thief/issues"},"license":"MIT","readme":"\n# Color Thief\n\nGrab the color palette from an image using just Javascript.Works in the browser and in Node.\n\n### View the [demo page](https://lokeshdhakar.com/projects/color-thief/) for examples, API docs, and more.\n\n---\n\n## Contributing\n\n### Project structure\n\n+ `build/` - Simple script that copies and renames files into the /dist folder.\n+ `cypress/` - Browsers tests.\n+ `dist/` - Generated distribution files created by [microbundle](https://github.com/developit/microbundle) package and a couple of files copied via build script.\n+ `examples/` - CSS, JS, and Images for the index.html example page.\n+ `src/color-thief-node.js` - Source for the Node (commonjs) compatible version of the script.\n+ `src/color-thief.js` - Source for the browser (ES6, AMD, Global var) compatible version of the script.\n+ `src/core.js` - Functions shared between the node and browser versions of the script.\n+ `test/` - Node integration tests. Uses Chai.\n+ `index.html` - Example page.\n\n### Running tests\n\nThere are two sets of tests:\n\n1. Browser tests run with [Cypress](https://www.cypress.io)\n2. Node tests run with [Karma](https://karma-runner.github.io/latest/index.html) and utilizing [Mocha](https://mochajs.org/)\n\nTo run both the browser and Node tests:\n\n- `npm run dev` to start local server.\n- `npm run test`\n\nTo run just the browser tests with the Cypress UI:\n\n- `npm run dev` to start local server\n- `npm run test:browser`\n\nTo run just the Node tests:\n\n- `npm run test:node`\n\n\n### Adding tests\n\n- Update `cypress/test-pages/index.html` as needed or create a new test page if you need new examples.\n- Add new tests in `cypress/integration/apis_spec.js`\n\n### Making a new release\n\n- Merge `dev` into `master`\n- Pull down `master`\n- Update version number in `src/color-thief.js` and `package.json`\n- Run `npm run build`\n- Commit and push built files back up to `master`\n- Create a new Github release along with tag. Naming convention for both ```v2.8.1```\n- `npm publish`\n","readmeFilename":"README.md"}