{"_id":"@laverdet/lokesh-colorthief","_rev":"1-3c47dadcf5454e0c52526ec0eea5d556","name":"@laverdet/lokesh-colorthief","dist-tags":{"latest":"2.3.2"},"versions":{"2.3.2":{"name":"@laverdet/lokesh-colorthief","version":"2.3.2","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","@laverdet/lokesh-quantize":"1.2.0"},"gitHead":"ef231c711309dc32be1efa83bd4da7c0ed21cd6e","bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"_id":"@laverdet/lokesh-colorthief@2.3.2","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-sE7TRrS3HijeiQAsxEQXTHzvUYQguuMdTazNsEWltAQyxUoiWhCldt26+vLoxu5ZevscTxClNfW8toyyFcbrSg==","shasum":"15cfd1c13328d19b372d0397a1074dbdab6b69db","tarball":"https://registry.npmjs.org/@laverdet/lokesh-colorthief/-/lokesh-colorthief-2.3.2.tgz","fileCount":43,"unpackedSize":545482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQPbnCRA9TVsSAnZWagAAG3wP/1reHJBwdda5DZXcl9Px\ngrYg75LJF6AZFc5q0qbOC4XivafbNyo1SqgPPDGHuVH18x1a1hYca+Qt4T0a\nOKEyCxHIgyFhNQXd1/5DoDE8Ol1PmyaL+gToQWNA5jaKgiF/ykXpatkN4XAp\n2AaWgJNLMcyY3/QFWhDTc8j1pVHEbxZkq/c7ZmCY8fNfaHEmIKoSJdCuYPtN\niGsEi8lc/r1ocbjf97ONJSpBGh+jp1/UQV9yPU01bMF9s7yHgDuqHhNEoXln\nd7TPomcvTzz14pj01oywTRWXQQ3FvVCQ+eLJ32PRn2RITiFeDIIetEJQcbsj\nUB134Pn5SbvUBc5BPzsYxdVOqsBLENBbURvMjcKWRGJYaId+x+uD2ITAlrzX\nS82WTB8VsgJZHxHwns/wHOQyjQ4l9+puya8B/c+6iM6hJABsaVoFGrWD5M1n\n/QOmo5IVuRo43rK8+AEMMXBINHpoCwZnmRdZXrFq3JF5HFPj9DtMnVi/6p2Z\nTfv1QBRd3KexffI9Q9JJE/sCH9OuTwI8dk+oYHtNSpTyR3tvNxd1/7sFzzgw\n/zXMRJw+GZ7Ek4Vx3nW6ridtR6wy1PRtfkdyG2+zg2ltXouFzRbmnh7PA09J\nUOBYd7+1G0XfrcipNVQaLpcvkMMiU73OBZC6TF0OTuaaEC7A7o5wAV+2Uv//\nf4yY\r\n=sFTj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkBPZbJwcHdc8EKVbqIL2EkJ4iTrRzA16dZ0Owx9NinAiEA5XtXFoFPibJfw4Uoc0mLYTlm/JSlJBzafxIYcwazSys="}]},"_npmUser":{"name":"laverdet","email":"marcel.npm@laverdet.com"},"directories":{},"maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lokesh-colorthief_2.3.2_1631647463667_0.9315143475866186"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-14T19:24:23.596Z","2.3.2":"2021-09-14T19:24:23.935Z","modified":"2022-04-06T00:53:19.113Z"},"maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"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":"\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"}