{"_id":"@bluecarmon/colorthief","_rev":"1-e52c9470125814479377cac1eac66345","name":"@bluecarmon/colorthief","dist-tags":{"latest":"2.3.3"},"versions":{"2.3.3":{"name":"@bluecarmon/colorthief","version":"2.3.3","private":false,"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","@bluecarmon/quantize":"1.2.1"},"description":"Grab the color palette from an image using just Javascript.Works in the browser and in Node.","_id":"@bluecarmon/colorthief@2.3.3","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-SaQ8svrEdzASnmJShMOqUGxMADMcBFy1uKJ8punf5KfAFT0nlvnXL5HD5BYuAjWiWRw4g209LR4JFLkm2zuKKQ==","shasum":"9623df4b423815c46509e13c545de4af681de72d","tarball":"https://registry.npmjs.org/@bluecarmon/colorthief/-/colorthief-2.3.3.tgz","fileCount":42,"unpackedSize":556076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNXh0CRA9TVsSAnZWagAAYFcQAIyB+xPZ8WzNomRDMhlK\nB8VjYEC6P/urqaMbCaTPiag9Cm5v43JgnjBEQIG/GCSQUun+xncfcbjjUrjf\nT8UUJHn3AgpeZRtdIgICKeCt1FG2lTKJUww6BsE0MNXb6JagWh7t5oRGdxKm\nyr5tDGcPv8DkJv415ny/vkSuJI2xT1lV39jNkMYl+cfl2rkjih/Ik4mSiwpv\n+Ds7Q1qSJMs7IvWF9xZZc5GYRx9bG+Afw2jtBvQjdWjPvMpPVGaq4w7a0Jx8\nck0LRryc8/ZNb+xtrcDMB3mZt42i4fOidFFPYaEFh6j2yg2HVgW3yGfwGx7n\nfP3qdixZwePzFz+b5lPQtQFDE/n/utLXUkyrn+u+NAdkBDkVXBbcqWcFBVyI\nMmsMvYZFYid3sa5VLUa4G8Uk2ghrA2ul2FVfWpYQvdDuG2YFGsL66Vi3/7hS\nuYZ+npggS93AN401qlJoUu7gc2kUss/Cxx46dXmKGfsL+3LIZtlC6IeRh/uy\ndtHX96NfDPHxdIWpvMdU6/k0Nv5gjkQn7NsJMxUaK+FbYu4s8oAYWmt4j9PX\nQ7RrxsKOaYKUbldQ9b82n35o2QgqKAVOvM+R526S2H1kvainYJJSLkUHsbVH\ndCh4mUessqg/EeL0eCk3LCpSubkI7OhsTXyazQrA4OiAdLxnKC/xcxW600Qf\njeQL\r\n=BmoE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1zcZMqjiFuqPsGS9vKSl6Sf0uRi6IUid75P9vq/KQKAiEAvZlZQLu4kBrpT36Ne1GZ9zHoW566XJzNvLfw3ODt3Xw="}]},"_npmUser":{"name":"incarmon","email":"incarmon64@gmail.com"},"directories":{},"maintainers":[{"name":"incarmon","email":"incarmon64@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorthief_2.3.3_1630894196239_0.3795188310027602"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-06T02:09:56.164Z","2.3.3":"2021-09-06T02:09:56.457Z","modified":"2022-04-04T19:44:45.366Z"},"maintainers":[{"name":"incarmon","email":"incarmon64@gmail.com"}],"description":"Grab the color palette from an image using just Javascript.Works in the browser and in Node.","license":"MIT","readme":"# 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"}