{"_id":"color-extraction","_rev":"54-9cae3f30023b41ca39b95520f3b80518","name":"color-extraction","dist-tags":{"latest":"1.0.8"},"versions":{"0.1.0":{"name":"color-extraction","version":"0.1.0","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.0","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-0iMRjwSdT3EY/tpmnWVlb5BhLmQJu5ngweVPCGEuaYsKNTWRadlut8ZznmEGVXjjpozFK7d4ZzBaL+UDfzPmWQ==","shasum":"11c82538e0c4c3a0166df74bac39886a6129d688","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.0.tgz","fileCount":5,"unpackedSize":452798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy/rF+6BxyZvOFzxFEDtsAipe+tPUPlbGXtF8jyG55/QIgWLetJElF/3zDZtWovF5i7IaV4Zdtavwjdm3pInYWB28="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.0_1696921204496_0.33923566184394627"},"_hasShrinkwrap":false},"0.1.1":{"name":"color-extraction","version":"0.1.1","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build","build:browser":"vite build --outDir dist/browser --mode production"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.1","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-8XU2Q3svylJbXCibR3tmrCbcMsrdRLLzTyzZlemiAKSTiQLkxMmqtvn4F7//sqSxyKYMPI7hQkBvpjMYzAw4TA==","shasum":"898b66032240b7a1379a4073db6ac1433121e5f1","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.1.tgz","fileCount":5,"unpackedSize":1059,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQSti/Gjo6avdY9hVSbTpyH7p4FJzgMr5T+tbXMsmNqgIhALecZgi081ZumbLI5SMHlI1Ru1vkfoTDO83JdZSPUzl2"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.1_1696925297323_0.7471400710867313"},"_hasShrinkwrap":false},"0.1.2":{"name":"color-extraction","version":"0.1.2","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.2","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-y/wG8CCTuemPeh+rwLpyAghCPBV9q9e0v6Y1c3LUwKcQ/+ksqrR5VXz1+b4UnxoyatqNqE8Rv/LEfZkDVUJe9A==","shasum":"4a72f3397c764988ddf5d8310fc1b057f868ecd8","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.2.tgz","fileCount":7,"unpackedSize":453567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGY5B+pxOdCl5Hn92MrCyl43T23Lv+6rishzCY8mWwIFAiEAjwK4ZtXig9HmtdBmISOFacuwBZs1lnEU42LKpZJGDiw="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.2_1696926083332_0.5989419366741411"},"_hasShrinkwrap":false},"0.1.3":{"name":"color-extraction","version":"0.1.3","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.3","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3YUemlWBhNOd8Yer3+Bh9l8NxKgU6U+cXQDq6/afrfPbEBgVAANvTV7W0Ynjux6Blj6vtETKa8B19pcoUT1oyA==","shasum":"ddd21464ea609ef4658f461df0d4baa8c6050ba2","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.3.tgz","fileCount":7,"unpackedSize":453661,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEpz0LS20YRWEeprFJ5LL6QpGGwSYjdtvdBITZLEA0ngAiEAhza7GvNZyHvEN34Hso0sMC6Bu/4hbXrEfT9F/thFRuk="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.3_1696927449959_0.7164342666525714"},"_hasShrinkwrap":false},"0.1.4":{"name":"color-extraction","version":"0.1.4","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.4","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-c5idZsRshUUPWeZYLbOsIov8z/8j7hqSjdASn74H/xJ8vhDCITAjH34p/bL5Ztg+ZEbQO/1G8XiXtN4JcW7imA==","shasum":"c79a28a2c15e46c97d67f82ef4cee8a0cd93c03f","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.4.tgz","fileCount":5,"unpackedSize":984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLpXCSpBIxjm7ZCuIzNSWZYdxq8YdmK5WbOblkefgBHQIgdP3F2XswxBDS5MgmAes2khnKYRU2/LrqFzEUy7meM0A="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.4_1696929741651_0.37827643460494187"},"_hasShrinkwrap":false},"0.1.5":{"name":"color-extraction","version":"0.1.5","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.5","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-xIjnJeE2nbdNW7sRU/Wp28GqevL/7+azoRmrYJZmKLESDo1UiVQj1VSc4oDqlXxmS/RKSO0WbsVt7+7K7TJzVg==","shasum":"faeb697c4ed3e8e445ec75497797c2e0ab789370","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.5.tgz","fileCount":5,"unpackedSize":452957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBv0hSHIJvElvTwOvSquQB0Wd0XyJjykVs0LaJAoJgD6AiBIWnE36qFZKKz2X4iYq2Wzm55xzlkYe+noUywTGI3HVA=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.5_1696929905727_0.6620817066817115"},"_hasShrinkwrap":false},"0.1.6":{"name":"color-extraction","version":"0.1.6","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.6","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-KEW17RWEg4rmaEhmi44aSHMn8oralSJqAxTkYvfULc9qJpgWOq+1g/cNEVsr9eyNkLcbWyxvOv08TlvBXtRkZg==","shasum":"c8f7c11745b248cf58d2e43016ddc5b95619283f","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.6.tgz","fileCount":5,"unpackedSize":452957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHm3NDOg93x/6ihVQGIotg14zv17H5pUj6j83PAfZ7bOAiBikjiWfxm+7hVzYYdTMwUG0ie3nmE5QOZWePA1c1SrSw=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.6_1696930030642_0.09974539174221886"},"_hasShrinkwrap":false},"0.1.7":{"name":"color-extraction","version":"0.1.7","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.7","gitHead":"fb2ec5c5db3c27cff56ddec77d826e0a7be4dc6b","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-QMoGR5uuJ/Y8qrm4Af8qFHvdQITVXe18WcQkVjJL2eBOFuasjehUxGZSmQDylPsmgxPEq9ZrQ5fAwY6RYW4hpw==","shasum":"b68d2ef06f75fa7e2eb6418f2fee4404e4eb573b","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.7.tgz","fileCount":5,"unpackedSize":453007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5O9hGS0LawyImqbpl8UjeZqz/9omnnFpnDh0OWFmA+AIhAJGCGnwu8WF3+TnTMZfO8Mh/bNrkrbUgzS+JpX4x0rTg"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.7_1696930262981_0.34878786685479257"},"_hasShrinkwrap":false},"0.1.8":{"name":"color-extraction","version":"0.1.8","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.8","gitHead":"1ead97478cb19bad65641eede9702c0f2f0dd792","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-EhSSeXXYNTP3LvFJPjzd51/12E+yXVsl8FCH/Xs62gXqtiywyjrIbyVHkOUvmpQLEHC75tBbTW8I2pySAoNFUw==","shasum":"1f39381dcfa54e49d2387f6e32909604641afa7b","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.8.tgz","fileCount":5,"unpackedSize":469562,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoIOj+iKEt1mF5gSCavE3k0RHl1LTScuJhf1BrO12uXgIhAOxxxEwZfmn4aTk8oXrw/3QWhljLQEH1W5Mx8vzcWOJI"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.8_1696938336884_0.41871914536690635"},"_hasShrinkwrap":false},"0.1.9":{"name":"color-extraction","version":"0.1.9","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.1.9","gitHead":"805a0d4cf28b5370689bc2abfbd7135997456732","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-9ylg2J4ZTQlZIfgG0NWgZW1qE2wuB6qI8OXQBxttvk+IXg71Ae3l+KvMNVqcU2Jxfn4m6ONKKByJFR2A623DiA==","shasum":"fdf84b1aacb0e97f138c672764b5fe81d322b6a2","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.1.9.tgz","fileCount":6,"unpackedSize":468518,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFklzF+6yamc5/dcz7bQjTrQzRYro/vW+5xFV6FrL/uXAiEAij/lwumd68oqKXVFkrYNwjqRtVpiJbMEw++B4OFWKOk="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.1.9_1696942669056_0.5915959105697861"},"_hasShrinkwrap":false},"0.2.1":{"name":"color-extraction","version":"0.2.1","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.2.1","gitHead":"805a0d4cf28b5370689bc2abfbd7135997456732","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-mS+euDb4w0Lw8DCbm4QNalgbzEy+34KCzXEDgNBwmYTShZenLwkZq7ufQmXil7DdhlgR6jT20IZgpG0oTghlKA==","shasum":"2d81763289bce213030130c7ab2573d2b14055ec","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.2.1.tgz","fileCount":6,"unpackedSize":468502,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYVo+UAmIrnpybOcZALuWzH9AwlUv6yiyzSdI7JOCI7QIgPOVcBlmjJM09fitUIFmwXpvYBKIwrKAVnjGLirFUZ3g="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.2.1_1696943955257_0.8375149107958828"},"_hasShrinkwrap":false},"0.2.2":{"name":"color-extraction","version":"0.2.2","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.2.2","gitHead":"805a0d4cf28b5370689bc2abfbd7135997456732","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-2oi9De1RNFt4jLIMkt8A0ZcOseBp/JHWEaxz5gLM0yIgPluwFggFv/zY3MCiAHozNf6tlIdeR3drzLr4qrn45Q==","shasum":"459d03a2a31459251857c8d03cd1b797a916da7d","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.2.2.tgz","fileCount":6,"unpackedSize":468521,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCULeynjFQ4eZHIENoNgV8VP4Q4rFCVwJH65ri48SYkQIhAOx7nV0RQsJHqaBMMV9rSpsRK2OuasEgNwbpSNydEV1m"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.2.2_1696947382098_0.11743768014756073"},"_hasShrinkwrap":false},"0.2.3":{"name":"color-extraction","version":"0.2.3","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.2.3","gitHead":"805a0d4cf28b5370689bc2abfbd7135997456732","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-hsl1YmhaPfF1ZDBA6B2FX0KVHJ84WhbdKDexmaKX3iZSKK8tXLufc4RditYNsiPV0fLEOB4WoOHzL57Gh9x9wg==","shasum":"3c67344dd4904e58894a97943639e8676b6c2640","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.2.3.tgz","fileCount":6,"unpackedSize":468521,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+RW6MVkTE0kQxrdn057Zpte504hC4Bl2OlHzQ91VDWQIgMmDVhRFl6rXAWFZDgFh7d/CLWydeCyELqt7BhRPeTuc="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.2.3_1696947659957_0.6718965132597232"},"_hasShrinkwrap":false},"0.2.4":{"name":"color-extraction","version":"0.2.4","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.2.4","gitHead":"805a0d4cf28b5370689bc2abfbd7135997456732","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-WWbn0aHWpZmBJBcaQlFtGnqfb1Mpcai91Rde3AoJwLF+JqTi7gZl31xHuaRVU80l1atXCOdWMfkTgVS8s8TTVA==","shasum":"977a8dbb08c4aad1906b0838a51a72df13b4775c","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.2.4.tgz","fileCount":6,"unpackedSize":468537,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwpNW7qB75/WTgnNVGxNtuJSkTx/EJ7HGM8SOB6aezlAiBQB8Co7U/TJ6suCnJgee1Ex60LUZYhEW1ejz5w0Df8Lw=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.2.4_1696947688752_0.20498360278676886"},"_hasShrinkwrap":false},"0.3.0":{"name":"color-extraction","version":"0.3.0","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.3.0","gitHead":"805a0d4cf28b5370689bc2abfbd7135997456732","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-NLGYUd2l59r1gak3TaWQ9KvJVIO44heEPLIpIwAmxKWS+Ok6nRv8qI+qTnmAfcvc1onLIWX1o3VeNg2Rmk6pPQ==","shasum":"93d86a2745e16daa378e9d87559ec52bd71df15f","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.0.tgz","fileCount":5,"unpackedSize":468201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDC1pb4ehPzvSIvIXhjWKjzXQdUXhFNqra+LZDqv47rlAiEA53lFWnOmYue2PLv4JWJh7U0jmMeP7pwjZc/R+wer8xQ="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.0_1696952540932_0.02324480204381385"},"_hasShrinkwrap":false},"0.3.1":{"name":"color-extraction","version":"0.3.1","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.3.1","gitHead":"416d58875dc75b813e0108f72246607e4d3e4645","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-hTQr1mObKXgoG9/KSARcQ4oV9pq+MDOkcHtf6eLHJuyDIJiZKGbPF8ur1p0W60qg+Dr6XyUrXNsmeroarQWXEQ==","shasum":"9ddeae5173e0c2aaa7fe5c54f30c6f55d9c2d2eb","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.1.tgz","fileCount":5,"unpackedSize":453467,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAKAAReMCUXXg57FCuRsq4i53aB/6zlnNFVSbWSBYPlgIhALjNSnASEBhkCBxF25XbScS8D9sBIraEslGojlTCtdgF"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.1_1696963708482_0.9431749657231219"},"_hasShrinkwrap":false},"0.3.2":{"name":"color-extraction","version":"0.3.2","description":"从图像中获取主色或调色板。","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"lostElk"},"license":"ISC","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","vite":"^4.4.11"},"_id":"color-extraction@0.3.2","gitHead":"416d58875dc75b813e0108f72246607e4d3e4645","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-w7kGPJ2s4s6AeHA03JhC4YMaoG2Wmqjh1soi90YeHeb25Z5CoykHPu6CF0lUi+nl0lmkr5x7OXOKeLoXWccSAA==","shasum":"a6271bc17eb3591154c8b9c65a11f45245a7180f","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.2.tgz","fileCount":5,"unpackedSize":468798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTnrSgfM+KW3JuXbwnuB3T/y0Ip4TrfBOSLWTOsN9eBAiEAozAnGHmKIUnurhiNXrT0xImfSEx7nUtxBHRvH/EyNPM="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.2_1696963740655_0.7019309745188345"},"_hasShrinkwrap":false},"0.3.3":{"name":"color-extraction","version":"0.3.3","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build && tsc"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.3","gitHead":"a351a8407b089e63bb41451a60c7feadf2b2f66a","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-K/ljYs6jvXUrz8/p7lo2pbwgpo89qDnNdgozoGVK9T5Q18y2fLETz4i88opaD1HFpX/tH9WyOY7/BqaMNb9Oww==","shasum":"707e35f7850c649a4167628f61b7809a9e17682c","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.3.tgz","fileCount":27,"unpackedSize":1121544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfYcdop9BIh07n3j4SyE1nyKv3NTA4dS4Np0jC23zULAiAQJRTXexpNbizv6+mL1LFfUthgSnDaTAPvZKYYkO/LWg=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.3_1696998173345_0.6549030714905542"},"_hasShrinkwrap":false},"0.3.4":{"name":"color-extraction","version":"0.3.4","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"./types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.4","gitHead":"06a62a079e770c0478acdc6c60c0f2dbc4c12bba","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-7W6A6r+RFpMhOaYH0xjZsEZk3uQOEQhqojW5SDU/M+h/NPLzwE5mlYNEtmUEfGgAYprpd20Ftt1bWzml1/2MsA==","shasum":"c9d540046342d0e4e5bdfe1aacbe1d6e4f4b849a","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.4.tgz","fileCount":5,"unpackedSize":487612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6FrJasXlK6IHYZWAUwLKJehViXwdTbNvv/2f8iTK4AAiEAkKqppFmeoGGnk5fg9BBXo1rXp0itK3lOIYxLSsE1EL4="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.4_1697000945894_0.7634247006846795"},"_hasShrinkwrap":false},"0.3.5":{"name":"color-extraction","version":"0.3.5","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.5","gitHead":"06a62a079e770c0478acdc6c60c0f2dbc4c12bba","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-IPrgyY++b9j1p7V7D9Xc34BOFxRDGaQjkTIpAbaWs37ShVy3fxkZFMqbxY0/Fy9xaVihMJRpbDyX10cEuMLBPQ==","shasum":"0c44125889f8455406a00a90cf29994d19fd48ac","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.5.tgz","fileCount":6,"unpackedSize":488141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAzQstcVWQYUiWXHKv5d9uUJm7MSV3EPKKFxft91/ciwIhANAIhrWuQSaKvDyPvP51QLOqsfzAAYOvrEtTixEBq4sr"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.5_1697001007238_0.9787886832006518"},"_hasShrinkwrap":false},"0.3.6":{"name":"color-extraction","version":"0.3.6","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.6","gitHead":"06a62a079e770c0478acdc6c60c0f2dbc4c12bba","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-RzomDKlgnyaNV3tEDHY0xe4345w6l+/+DRyBVGmL8WyPVpvfTxdbIq+LkspjUJjj8oPSIA4Xvyi9XC5+3PKXEw==","shasum":"a126cd497f12557466ea425c54b4ea3ca2ce8600","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.6.tgz","fileCount":6,"unpackedSize":488141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHW/yHoZh5YQ2OVVOeZ0k757+6Bc7vCrULnyTn7h+qqAiBbY0AGFrsmuBdm7x0lYvVs2jw+xBwjxoHXiWvsE4QfWg=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.6_1697001718154_0.3115981053486614"},"_hasShrinkwrap":false},"0.3.7":{"name":"color-extraction","version":"0.3.7","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.7","gitHead":"06a62a079e770c0478acdc6c60c0f2dbc4c12bba","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3bSycRKE3u2qUBraF46I9BuYfZ1D0YAzA50hf66+c59cQ+yi/OPYFPmwmaf/OArdN/11tnRkNC90elrW1m5nlA==","shasum":"ff46227ae1881d13cd428e6a86e31529fd7ab2c2","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.7.tgz","fileCount":6,"unpackedSize":488141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBaSHeCjUJ9FnTpvyg5sjbSsXRvQ6xDKa0SII8CgjqKAiEAw2bY2Zlf25OizLdpBlRJwaoCkK/h8rgCdOUqnBKN82A="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.7_1697001883712_0.4188431213167316"},"_hasShrinkwrap":false},"0.3.8":{"name":"color-extraction","version":"0.3.8","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.8","gitHead":"9f4911c7bcbfa32e2113c20b3a6751f292661891","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-L4B+eVH7Anp5Otq/w95CZD5PHPq/XOL5OMq/dGZNb2NfE9Rwk1gAUhZb6W7Y5udzl0VQstANX86E5CnafLgHkg==","shasum":"cd792bfd7da49e9232d5ad4fe7780a140684450b","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.8.tgz","fileCount":6,"unpackedSize":488141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3kTq9pqIjIuaRoeATI1KbI8QT4k2NeFHxvxmSCY5oXAiEA4IUBFLJ44HYf+Cx84W1nWZBqZnFcDkRpEZbDJwMYVh8="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.8_1697009226363_0.31500026630914024"},"_hasShrinkwrap":false},"0.3.9":{"name":"color-extraction","version":"0.3.9","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.3.9","gitHead":"9f4911c7bcbfa32e2113c20b3a6751f292661891","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-K/cVbvJOefllu5d+6krnHft1hFd7KKz623C9Fvi0Zim4W+KNLBdZmwuiNdp2dq/oOVwnkTz0Mauwn7oZumxpNg==","shasum":"cc234502f075a59710f7b30c098b0662849a7247","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.3.9.tgz","fileCount":6,"unpackedSize":488137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5ZreFGDxBvBr3UAAZQEYAwK1HLY6fNHogj+AWl1OMDAIgcv35HO0HuXr7AbYzFwLE6pZNXkAh7eRbZseBNb1I7Ks="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.3.9_1697009538304_0.0010806598885266805"},"_hasShrinkwrap":false},"0.4.0":{"name":"color-extraction","version":"0.4.0","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.4.0","gitHead":"32cb24e7ff3e83d5a8971f630c5875e24ed5bb0e","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3EANAKtebC0Qt3MhN95qTZ1fTbsSsdaPjTg9naeDZPCRa1X/LvewvBoLJeTuk++Pzb73X4PRseAaXGttSxw8cQ==","shasum":"1cb60203cab5f587dc53a7b9f494a7580e17058a","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.4.0.tgz","fileCount":6,"unpackedSize":469687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPvmz6YOxHXhsHp72xgU+fRrt/MP8UPyhFO/dFjXZykAIhAPM4UfJfpSEdJLq9o1ct/wzkAx90SXtVxF9R95SpcytE"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.4.0_1697015665849_0.3996474755632906"},"_hasShrinkwrap":false},"0.4.1":{"name":"color-extraction","version":"0.4.1","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"types/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.4.1","gitHead":"32cb24e7ff3e83d5a8971f630c5875e24ed5bb0e","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-AC9yOeZsLwM/3dKnGRPwRTNeZhCZaH+EPh0sV/XEU67XG3agmVj4J+iQc/D6IbKWkrVN/8Ws4eVXryMIVE/dtA==","shasum":"efffd0c885714da7364361feffcb80fdda1d14a4","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.4.1.tgz","fileCount":5,"unpackedSize":487606,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6KbiihYcEfM/fzHglPhR3xqRK8lNVOpghAdZXNs213QIhAItMdBlpebMJrl1UNOk2sRhUJXtrmO2a45yzCvBc7z8z"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.4.1_1697017769435_0.4543168385619847"},"_hasShrinkwrap":false},"0.4.2":{"name":"color-extraction","version":"0.4.2","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.4.2","gitHead":"32cb24e7ff3e83d5a8971f630c5875e24ed5bb0e","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-QskkqtJWSyVy1p2WXnXYx/5l0BmZR1Jo5DD5AlSAQNW+EhQad23aKEvGLLVsv6EV+x35UoCNcVWCJE55DdRaXw==","shasum":"d668c74aeada683ff23121089d04632bd88bb919","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.4.2.tgz","fileCount":6,"unpackedSize":488137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1dy2mLZ/UHH9GN8SUNA6yWf6T/k2tqWu0nhK6mYhFugIhAOL/pjdEANhTG7kduQPmMLTYfswqa9i32hOiRchXYUKq"}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.4.2_1697018098150_0.8103265573424727"},"_hasShrinkwrap":false},"0.4.3":{"name":"color-extraction","version":"0.4.3","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.4.3","gitHead":"32cb24e7ff3e83d5a8971f630c5875e24ed5bb0e","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-cJPpNpGMdNMUTimaSbspB1uAeEZoUxTxYT6TCIYXkz7ZVWfwZ1pbD6mjqGm2FE9z6+/ktqu4zLP2s+Cf6S1j8A==","shasum":"9d0f3bded5436bef50c8767d32215ca0a5c0b222","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.4.3.tgz","fileCount":6,"unpackedSize":488137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPleA2qq4KQtnBYSDsJ7fEAB2tbxVp3QtzfhkieHHY1wIgJrmRym3E/LAlAiGiNOrRO0EMoY4Z0HlhvDmlo79Ckgk="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.4.3_1697018459542_0.3888575582398446"},"_hasShrinkwrap":false},"0.4.4":{"name":"color-extraction","version":"0.4.4","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","extraction","image","picture","photo","canvas"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@0.4.4","gitHead":"32cb24e7ff3e83d5a8971f630c5875e24ed5bb0e","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Bb1fK5jzqiWtFlGHZva3xraRUMICukhhagjYZl8RMCzPyFnA4k6P6kcXqKskCNai5y3kkJbGeB8qMxTyBrrXPQ==","shasum":"94a1fa2e9474cf3d91f29ca4d402a6826f070d71","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-0.4.4.tgz","fileCount":6,"unpackedSize":469687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8En/9YmXkni5D0SeYWGJzrWh2a0M3c2cH3G0lf0Ss2AiBv7sKFVp96verPiNWe4zfTSl49z3GjAUhGTyJuTwfdJw=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_0.4.4_1697018816797_0.20327334530518337"},"_hasShrinkwrap":false},"1.0.1":{"name":"color-extraction","version":"1.0.1","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.1","gitHead":"3140ca2cc1d5d75741a4e70c83d620a9a3542905","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-5r1CrKs8IwhliItjxTxZuYH9dc6vKu1C89BrHafpjI5nzNuJfcvcDvhvQ33fH330wESFvElwo02z5evYKfgTLg==","shasum":"ad016627976f46a76059c3d861c517505c84ab58","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.1.tgz","fileCount":6,"unpackedSize":478003,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx5teNxG0YJOVBXNpz6SITWoUdjF6OTKtHFfQ5QQP0OAIgHEgqQj93Q0AV+oBidzazJJo4R1fm6f1Fb1aN7pLGots="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.1_1697033819654_0.11545564023634869"},"_hasShrinkwrap":false},"1.0.2":{"name":"color-extraction","version":"1.0.2","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.2","gitHead":"77308dc862f785ea7d1f635c04ed47038c942076","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-sL2Sr3ydEoulH/2bKEi3BTpEF/VQhu0+zkuRW8kj3Dgs/YYFGRdEsJqlTIaDpfuqj2rqMJTZ8qOEvovyNTBuHA==","shasum":"5e50b2908f851861607b45375adab96fb036fdb7","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.2.tgz","fileCount":6,"unpackedSize":477539,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAs+aZSk7STqPuRdUQIQUQktjLmOpqrHsR15tm5tNjfQAiAMHVJ5k+ZUHpdp2RlCpviZTB5x/xWReDTjUjcIjSPSLA=="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.2_1697034448068_0.48434911523803126"},"_hasShrinkwrap":false},"1.0.3":{"name":"color-extraction","version":"1.0.3","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.3","gitHead":"f540a9b4fe42521c9b3dfc95ae8b17fac2605638","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-a5p+djt+azsaef4zl7NlWEDAuZqNYofrilgzK/zCfrd3l5fVy8oNZwbQA7kUwmwiwLmY8+8JPW9DqH5Tnac7Rw==","shasum":"5da0262414cc8d9103ff856cc3b047c5292dd236","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.3.tgz","fileCount":7,"unpackedSize":485300,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgsvaraRwUprmSs33+3oXVf7dvEjxzjRQD12SxZstEIAiEA86JX5H660bWV37C6+/VkO0Ua2hWyXTskR4MdgqV3R7A="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.3_1697098951109_0.32802739069705367"},"_hasShrinkwrap":false},"1.0.4":{"name":"color-extraction","version":"1.0.4","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.4","gitHead":"f540a9b4fe42521c9b3dfc95ae8b17fac2605638","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-JDnEygjfRQG9O+l+DLEe6SphKDj6sCQcN1bW9ZUeaCznOR39dfqBguCuUYLUGScVALY3Y6hkdchLVn6EiA3/qA==","shasum":"35ff03b6f31e363317562a4fce9478259b00b345","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.4.tgz","fileCount":7,"unpackedSize":485335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB+7gLyZRKjSX2dhMIs+pJV/wRZJiAGhR8lVN4nG/pbgIgJ0ktT/8XNLXGpTMKhqhJQl2W3MV+6icsUsgHCnVmNmU="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.4_1697099073008_0.355944859626129"},"_hasShrinkwrap":false},"1.0.5":{"name":"color-extraction","version":"1.0.5","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.5","gitHead":"f540a9b4fe42521c9b3dfc95ae8b17fac2605638","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-gJ/fpUz3gu8VkSt2UUgpt+aSrCmTwBegScsk0yFSoKqZcCKoyUdg1h78TlP1Hfk5OhcGEL1D0Vz/dvSRCuvucQ==","shasum":"d52a29ba1e7cb5fc398d497208cb0b1b4d6e27f7","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.5.tgz","fileCount":7,"unpackedSize":485389,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8N0l6412wXaFnAXd5as6seVZNjudaV1t49HLMw4WEEAiEAidBcba7qaxYfkDev8b5x0uObZItzNCPQfsLpKGOhUvo="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.5_1697099157287_0.14048072560940694"},"_hasShrinkwrap":false},"1.0.6":{"name":"color-extraction","version":"1.0.6","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colord":"^2.9.3","colorthief":"^2.4.0","nearest-color":"^0.4.4"},"devDependencies":{"@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.6","gitHead":"f540a9b4fe42521c9b3dfc95ae8b17fac2605638","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-fl8yUeGQaB/IVT00CBCZh0IsS5PjgDeb1NxEA5SarochoFskVIgYqVTzhFnT7juF/Xf8jExmLeis4DBaNAes0A==","shasum":"ea7dd1f0352f8d29e5fe636d4b66c14b6c710769","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.6.tgz","fileCount":7,"unpackedSize":485387,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS4/sDfaIP/lXFr+IRttmpOP8znhLcYnhCGpCsywTAvQIgXW96XM44s+KkcTOWLssUdZWOrBk6DV8C6G7o+8eaipE="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.6_1697099221866_0.48712847023744943"},"_hasShrinkwrap":false},"1.0.7":{"name":"color-extraction","version":"1.0.7","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4","tinycolor2":"^1.6.0"},"devDependencies":{"@types/tinycolor2":"^1.4.4","@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.7","gitHead":"31229c36cc9b8cc48fb644eb758f3ab5b45937c8","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-CuGaiEl9BzsNNBEwCF8vHs1lbvWYuvGSLtKdHdM4+uHpxZE4BHKDwyuGVzGzwTBcZzztPN678EY8rwYOcIxMhA==","shasum":"da88f7c6f1ea2ab3b25cca21e6181458c75198cc","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.7.tgz","fileCount":7,"unpackedSize":485332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIoETgjGD+wAOu2wIBMP5098wa6kFQ7PnsgYrmLAYFYAiEApvaRCLGV77pqBBmq6P8o14OR218tas1oPw0wNh8uyNc="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.7_1697109118014_0.08129249743014277"},"_hasShrinkwrap":false},"1.0.8":{"name":"color-extraction","version":"1.0.8","description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","main":"dist/color-extraction.umd.js","module":"dist/color-extraction.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"],"license":"MIT","dependencies":{"colorthief":"^2.4.0","nearest-color":"^0.4.4","tinycolor2":"^1.6.0"},"devDependencies":{"@types/tinycolor2":"^1.4.4","@types/node":"^20.8.3","rollup-plugin-visualizer":"^5.9.2","vite":"^4.4.11"},"_id":"color-extraction@1.0.8","gitHead":"c490f152068f695ae421529c54aab5e41c0284d2","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-0GYeUL5eJ7IbO6GV1XUku/VcPmtJtRngN058Fop05RKeuoAOgB2k2EAV+GzdZkX7UQOPOSVNjT0dT8rC+YNwng==","shasum":"68950e6956a264894b48c44a0548bf872f8069c2","tarball":"https://registry.npmjs.org/color-extraction/-/color-extraction-1.0.8.tgz","fileCount":7,"unpackedSize":485394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFmjMvDamji6sZZBPu0hp1ue6Kjjk3KsNSggwxEVYRtwIgP0t+o9IHsyK4HZ1Wu/f91tHLU5OdecjxeGhkzcwoYDA="}]},"_npmUser":{"name":"lostelk","email":"1363944642@qq.com"},"directories":{},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-extraction_1.0.8_1697109759275_0.25517755092876016"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-08T18:04:50.877Z","1.0.0":"2023-10-08T18:04:51.088Z","modified":"2023-10-12T11:22:39.656Z","0.0.1":"2023-10-08T18:35:08.398Z","0.0.3":"2023-10-08T18:45:58.940Z","0.0.4":"2023-10-09T12:58:38.786Z","0.0.5":"2023-10-09T13:06:01.986Z","0.0.6":"2023-10-09T13:28:27.764Z","0.0.7":"2023-10-09T13:38:14.942Z","0.0.8":"2023-10-09T13:42:06.251Z","0.0.9":"2023-10-10T06:52:00.923Z","0.1.0":"2023-10-10T07:00:04.912Z","0.1.1":"2023-10-10T08:08:17.556Z","0.1.2":"2023-10-10T08:21:23.562Z","0.1.3":"2023-10-10T08:44:10.284Z","0.1.4":"2023-10-10T09:22:21.859Z","0.1.5":"2023-10-10T09:25:05.897Z","0.1.6":"2023-10-10T09:27:10.950Z","0.1.7":"2023-10-10T09:31:03.362Z","0.1.8":"2023-10-10T11:45:37.134Z","0.1.9":"2023-10-10T12:57:49.296Z","0.2.1":"2023-10-10T13:19:15.486Z","0.2.2":"2023-10-10T14:16:22.236Z","0.2.3":"2023-10-10T14:21:00.216Z","0.2.4":"2023-10-10T14:21:28.993Z","0.3.0":"2023-10-10T15:42:21.178Z","0.3.1":"2023-10-10T18:48:28.719Z","0.3.2":"2023-10-10T18:49:00.955Z","0.3.3":"2023-10-11T04:22:53.705Z","0.3.4":"2023-10-11T05:09:06.063Z","0.3.5":"2023-10-11T05:10:07.530Z","0.3.6":"2023-10-11T05:21:58.327Z","0.3.7":"2023-10-11T05:24:44.017Z","0.3.8":"2023-10-11T07:27:06.640Z","0.3.9":"2023-10-11T07:32:18.535Z","0.4.0":"2023-10-11T09:14:26.026Z","0.4.1":"2023-10-11T09:49:29.670Z","0.4.2":"2023-10-11T09:54:58.320Z","0.4.3":"2023-10-11T10:00:59.760Z","0.4.4":"2023-10-11T10:06:56.948Z","1.0.1":"2023-10-11T14:16:59.888Z","1.0.2":"2023-10-11T14:27:28.317Z","1.0.3":"2023-10-12T08:22:31.303Z","1.0.4":"2023-10-12T08:24:33.232Z","1.0.5":"2023-10-12T08:25:57.525Z","1.0.6":"2023-10-12T08:27:02.256Z","1.0.7":"2023-10-12T11:11:58.309Z","1.0.8":"2023-10-12T11:22:39.489Z"},"maintainers":[{"name":"lostelk","email":"1363944642@qq.com"}],"description":"Gets the dominant color or color palette in the image and the color name in English and Chinese.","author":{"name":"LostElk","email":"lostelk.email@gmail.com","url":"https://lostelk.cn"},"license":"MIT","readme":"# color-extraction\n\n[![npm](https://img.shields.io/npm/v/color-extraction?color=blue)](https://www.npmjs.com/package/color-extraction)\n[![GitHub issues](https://img.shields.io/github/issues/1363944642/color-extraction)](https://github.com/1363944642/color-extraction/issues)\n[![npm](https://img.shields.io/npm/dt/color-extraction)](https://www.npmjs.com/package/color-extraction)\n![npm package minimized gzipped size (select exports)](https://img.shields.io/bundlejs/size/color-extraction)\n[![NPM](https://img.shields.io/npm/l/color-extraction)](http://opensource.org/licenses/MIT)\n\n[English](https://www.npmjs.com/package/color-extraction#color-extraction) · [简体中文](https://github.com/1363944642/color-extraction/blob/main/README.ZH.md)\n\nGets the dominant color or color palette in the image and the color name in English and Chinese.✨\n\n**_Works with browsers and node environments._**\n\n## Getting started\n\n### Using in Node\n\n#### 1.Install and import\n\n```sh\n$ npm i color-extraction\n```\n\n```js\nconst colorExtraction = require('color-extraction');\n```\n\n#### 2.Use\n\n- Get colorName\n\n  > Convert colors to Chinese and English keywords. (Support Hex、RGB)\n\n  ```js\n  colorExtraction.colorName('#fff'); // { color: '#fff', colorName: [ '白', '白色', 'white' ] }\n\n  colorExtraction.colorName('rgb(0, 255, 0)'); // { color: 'rgb(0, 255, 0)', colorName: [ '绿', '绿色', 'green' ] }\n  ```\n\n- Get mainColor and paletteColor\n\n  > Both the mainColor() and paletteColor() methods return a Promise when used in Node.\n\n  ```js\n  const img = resolve(process.cwd(), 'lostElk.png');\n\n  colorExtraction\n    .mainColor('img', 10)\n    .then((color) => {\n      console.log(color);\n    })\n    .catch((err) => {\n      console.log(err);\n    });\n\n  colorExtraction\n    .paletteColor('img', { colorCount: 5, quality: 10 })\n    .then((color) => {\n      console.log(color);\n    })\n    .catch((err) => {\n      console.log(err);\n    });\n  ```\n\n### Using in the browser\n\n#### 1.Install\n\n- Install as dependency with npm.\n\n  ```sh\n  $ npm i color-extraction\n  ```\n\n- Load from a CDN.\n\n  ```js\n  <script src=\"https://unpkg.com/color-extraction\"></script>\n  ```\n\n#### 2. Import\n\n- As a global variable.\n\n  > The global variable is named colorExtraction instead of color-extraction\n\n  ```js\n  <script src=\"https://unpkg.com/color-extraction\"></script>\n  ```\n\n- As an ES6 module.\n\n  ```js\n  import colorExtraction from 'color-extraction';\n  ```\n\n#### 3. Use\n\n- Get colorName\n\n  > Convert colors to Chinese and English keywords. (Support Hex、RGB)\n\n  ```js\n  colorExtraction.colorName('#fff'); // { color: '#fff', colorName: [ '白', '白色', 'white' ] }\n\n  colorExtraction.colorName('rgb(0, 255, 0)'); // { color: 'rgb(0, 255, 0)', colorName: [ '绿', '绿色', 'green' ] }\n  ```\n\n- Get mainColor and paletteColor\n\n  > Both the mainColor() and paletteColor() methods return a Promise when used in browser.\n\n  ```js\n  // Get image\n  const img = document.getElementById('img');\n\n  // Make sure image is finished loading\n  if (img.complete) {\n    colorExtraction.mainColor(img, 10).then((colorName) => {\n      console.log(colorName);\n    });\n  } else {\n    img.addEventListener('load', function () {\n      colorExtraction.mainColor(img, 10).then((colorName) => {\n        console.log(colorName);\n      });\n    });\n  }\n  ```\n\n## API\n\n### mainColor(image, quality)\n\n**Returns: Promise<{ mainColorHex: String, colorName: [ String, String, String ] }>**\n\nGets the main color from the image. Returns an object that contains two properties: 1. mainColorHex is a string with a HEX color number representing the extracted color value; 2. colorName is an array that stores the corresponding name of the color.\n\n**image** - When called in the browser, this argument expects an HTML image element, not a URL. When run in Node, this argument expects a path to the image.\n\n**quality** - Quality is an optional argument that must be an Integer of value 1 or greater, and defaults to 10. The number determines how many pixels are skipped before the next one is sampled. We rarely need to sample every single pixel in the image to get good results. The bigger the number, the faster a value will be returned.\n\n---\n\n### paletteColor(image, { colorCount, quality })\n\n**Returns: Promise<[{ paletteColorHex: String, colorName: [ String, String, String ] },...]>**\n\nGet the color palette from the image. Returns an array. The array contains several objects, each of which has two properties :paletteColorHex is a string with a hexadecimal color number representing the extracted color value; 2. colorName is an array that stores the corresponding names of colors.\n\n**image** - When called in the browser, this argument expects an HTML image element, not a URL. When run in Node, this argument expects a path to the image.\n\n**colorCount** - ColorCount is an optional parameter and must be an integer of 1 or greater, with a default value of 5. This number determines how many palette colors to get.\n\n**quality** - Quality is an optional argument that must be an Integer of value 1 or greater, and defaults to 10. The number determines how many pixels are skipped before the next one is sampled. We rarely need to sample every single pixel in the image to get good results. The bigger the number, the faster a value will be returned.\n\n---\n\n### colorName(color)\n\n**Returns: { color: String, colorName: [ String, String, String ] }**\n\nGets the name of the color from the HEX or RGB color value. Returns an object with two properties :color is the passed color value; 2. colorName is an array that stores color names.\n\n**color** - Support Hex, RGB.\n\n## FAQ\n\n### Do I have to wait for the image to load?\n\nYes. If you see an error that reads: `Cannot read property '0' of null`, it is likely that the image had not finished loading when you passed it to `mainColor()` or `paletteColor()`.\n\n```js\n// RISKY 🙀\nconst img = document.getElementById('img');\n\ncolorExtraction.paletteColor(img, { colorCount: 3, quality: 10 });\n```\n\n```js\n// RISKY 😼\nconst img = document.getElementById('img');\n\nif (img.complete) {\n  colorExtraction.paletteColor(img, { colorCount: 3, quality: 10 });\n} else {\n  img.addEventListener('load', function () {\n    colorExtraction.paletteColor(img, { colorCount: 3, quality: 10 });\n  });\n}\n```\n\n### How do I test the script locally?\n\nIf you are testing the script locally in a web browser, you might see the following error:\n\n```\nAccess to script at 'file://...' from origin 'null' has been blocked by CORS policy.\n```\n\nThis is because the browser restricts direct access to the filesystem.\n\nTo get around this, you can set up a minimal server to host the files. One option is [http-server](https://github.com/http-party/http-server). To run this on demand without installing it as a project dependency, you can use the npx command:\n\n```sh\n$ npx http-server\n```\n\nNow you can visit http://localhost:8080 to view your server.\n\n### Does it work if the image is hosted on another domain?\n\nIf you manage the server hosting the image...\n\nYes. If you are seeing an error that reads:\n\n```\nThe canvas has been tainted by cross-origin data.\n```\n\nthen you are running into a cross-origin resouce sharing (CORS) issue. Check the following two items:\n\n1. **CORS policy on the server.** Is the server hosting the image properly configured? Make sure the requesting domain is whitelisted in the access-control-allow-origin header, or the server hosting the image has an open policy:\n\n   ```\n   access-control-allow-origin: *\n   ```\n\n2. **crossorigin attr.** The HTML image element must be given a crossorigin attribute.\n\n   ```html\n   <img\n     src=\"https://api.lostelk.cn/files/746/serve?size=large\"\n     crossorigin=\"anonymous\"\n   />\n   ```\n\n   If you're dynamically adding the image element, you can do the following:\n\n   ```js\n   const img = new Image();\n\n   img.addEventListener('load', function() {\n     colorExtraction.mainColor((img);\n   });\n\n   img.crossOrigin = 'Anonymous';\n   img.src = 'https://api.lostelk.cn/files/746/serve?size=large'\n   ```\n","readmeFilename":"README.md","keywords":["color","palette","sampling","color-extraction","image","picture","photo","canvas","color-names","color-keyword"]}