{"_id":"@eliotttak/color-convert.js","_rev":"8-40154dc56a27252d2f5c75e8cb719dd0","name":"@eliotttak/color-convert.js","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@eliotttak/color-convert.js","version":"1.0.0","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"GPL-3.0","_id":"@eliotttak/color-convert.js@1.0.0","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"cc64adcd60caac627b5605cda6a8542576ac06f6","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-1.0.0.tgz","fileCount":5,"integrity":"sha512-+uV0MryicJluv3aZvrSeNQedOyJT/U0mxRarpkTe2dNK1Cwrnz9w6EWH+EuVs4IF2G2LdJz2s4SB4I70fY6Qkw==","signatures":[{"sig":"MEQCIFOc/5vlxCNGU3N32fU8FoU9WNMeGkCc65/T7xqPkf8qAiBaSO3WPlY8Yz2GJaFrEfNwoLj6+gFqP/I9aYyEktCzUw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49301},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"3ef0e62e7534025cbcdf0d25b8fcda7a992724ac","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_1.0.0_1761780823883_0.40876837303583025","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@eliotttak/color-convert.js","version":"1.1.0","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"GPL-3.0","_id":"@eliotttak/color-convert.js@1.1.0","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"f0219433e355ba021c2b263088ed12ec774a24ce","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-1.1.0.tgz","fileCount":7,"integrity":"sha512-D6JYxrfWYzZzfUBQDwJzYMo9TAxv1dSbAgUVUp3Al42zATDwavBjFJX7viJAUZwE4rEr1YMVb8bi+61dm0UQbA==","signatures":[{"sig":"MEUCIQC0A0B62vG8xcik6LoG4YD6iOuipRx0dB06PlBVBTvWnAIgYKwekJc5JBEsjWMCv0ef4leAus3oac1voEf065/Vcrg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55041},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"e03689b5f117f487c8d83aee25b1a79f877143a5","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_1.1.0_1761814628208_0.43339743772449313","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@eliotttak/color-convert.js","version":"1.1.1","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"GPL-3.0","_id":"@eliotttak/color-convert.js@1.1.1","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"5a41bb547448a01185ed6023f7f0ca5663efbafd","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-1.1.1.tgz","fileCount":7,"integrity":"sha512-GSbTc93OUnnPJKZWUEe/LWejuXTJja24hO5qq+4KDu4h50DZKbNy5gIgVsgLiUABotgbAuwQuPkxx0BzWNyTMQ==","signatures":[{"sig":"MEUCIQDx41uJLiXNDpymOgvVfNNqfUeI+yZyrKClO9Pbl8CmFQIgPsLYITtSug7z/ZPUnzfk+0TtvVkRwvNjgaTwIF7b4AQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55117},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"053b7ffb9bbe0f7100a1da70b1665a7e41271258","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_1.1.1_1761815157057_0.12882845102262475","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@eliotttak/color-convert.js","version":"1.1.2","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"GPL-3.0","_id":"@eliotttak/color-convert.js@1.1.2","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"93fe49d0b06e7cecbb5eed082bfb4160856b3989","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-1.1.2.tgz","fileCount":7,"integrity":"sha512-FEidgnZRg1SkpxfwgjHv0ueGv6PjyY/Ev/jpNPQH4+DanMw8LmMrrTnWEiQ98fOAE78ttYsKytDycnIE7is0Nw==","signatures":[{"sig":"MEUCIC1UglMQ77iSz044SQ62VhZde7G01KkfgYQHoZmAYmqrAiEAikKouzeHmIkZ8U4qBuBsgFdmgaRLas0W5eEfoKh3/cc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55198},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"67635ec82d88492436dc7fc89de3aa8c6f9e66d8","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_1.1.2_1761817966392_0.4527992294135623","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@eliotttak/color-convert.js","version":"1.1.3","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"GPL-3.0","_id":"@eliotttak/color-convert.js@1.1.3","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"22e8db319e634ad8fe8a5d092a9807b1aa5d5861","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-1.1.3.tgz","fileCount":7,"integrity":"sha512-6kXeLEstnTOoQt/MeAVB5K3d7wc8uHN04OKHU6jBhTc+DiiCVl7xoU7i5bd6aQGI+oauiIUGXhB5j55pO/vaKw==","signatures":[{"sig":"MEUCIGf0w+LQQ0bEJkuaDLIlKnNWjvMM3U/OQtefwSs/smhIAiEAhoOz1dPoiMigwmr1s8aNTzeiMSOQfJsYytDnyc031V8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56142},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"82a903cf718b218a7923dcc583d0170f22bc7be8","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_1.1.3_1761827021164_0.6210702496639693","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@eliotttak/color-convert.js","version":"1.2.0","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"GPL-3.0","_id":"@eliotttak/color-convert.js@1.2.0","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"98d655eb0b62dc9ff10a493af5d54962ce340ae6","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-1.2.0.tgz","fileCount":7,"integrity":"sha512-5b4e+CGyEqulQph1ehGtR47/y6lyJuTjEWlIUnH5bcKyQNRw8Aa7AKF6p244KDM9xymwW9IWzvKJS9MezwqnBg==","signatures":[{"sig":"MEQCIAf3I277jlKdQvxWjUsQibbf7EblozEuOiiInSaUdKD4AiA0nwyLdgCzP9CHlby9+zeLTs1GB1//bm3dHETyQHDzVA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60310},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"70e116cf2fb8ec3f6f78e26690dd6dffc6ec6327","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_1.2.0_1761834165479_0.5394851288244897","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@eliotttak/color-convert.js","version":"2.0.0","keywords":["js","color","converting"],"author":{"name":"Eliott TAKVORIAN"},"license":"LGPL-3.0","_id":"@eliotttak/color-convert.js@2.0.0","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"homepage":"https://github.com/eliotttak/color-convert-js#readme","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"4842f6d25dafa7111f90cba107a24eb748249c8c","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-2.0.0.tgz","fileCount":11,"integrity":"sha512-kpc7C4/bOTJD2o51VxazpW6Bsy8iWcqiQj2eO2qV1v9I/mUVBaRZ3TyvCQzdMtN1C8XHtGm97+jZPkOKXiicRw==","signatures":[{"sig":"MEQCIDQ1wrxA0xKduCdcj1YqabNjyfOAOANng3PpSdMcMSUTAiAD3xWuOfaCUep4voSnLx9kwS65aSvjmeETHL0Agc8d+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40188},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"b4fc0ec0267ef056f21fb914e444751c369aa540","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.6.1","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"tmp":"tmp/color-convert.js_2.0.0_1762848639594_0.7347353811935007","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"_id":"@eliotttak/color-convert.js@2.0.1","bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"dist":{"shasum":"7b179db7f269a1b26eec32b8c9033a5c2094ef1f","tarball":"https://registry.npmjs.org/@eliotttak/color-convert.js/-/color-convert.js-2.0.1.tgz","fileCount":10,"integrity":"sha512-QxniTSgGK17K6ZHemAqBRRbPH92egFbAT014Sk9TsNTuI6X51L1vkFEKrGBX2n9TiEdN7bWKWVUewQl3wWLYUg==","signatures":[{"sig":"MEUCICrYSjYE3ZABXrNxWXDafgWv3BO7OTGIZ47q0FuQFuvRAiEArJStxLixKnMOmvvp2eRe+eLTx0c7pLA/hnf4dJZ5aCY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGC5szGM4HmIkbJiXWQU6BR0mjHoClShGi/RJcr9egBfAiEA8y+EiE5sscwmHXeNwNjZIPwmwFyHA3zZqDkKIQLuitU="}],"unpackedSize":38468},"main":"index.js","name":"@eliotttak/color-convert.js","type":"module","types":"./index.d.ts","author":{"name":"Eliott TAKVORIAN"},"gitHead":"e1cd933efd10a57420a78cc79649fc986c08354f","license":"LGPL-3.0","scripts":{"doc":"jsdoc --configure .jsdoc.json .","test":"echo \"Error: no test specified\" && exit 1"},"version":"2.0.1","_npmUser":{"name":"eliotttak","email":"eliott@etik.com"},"homepage":"https://github.com/eliotttak/color-convert-js#readme","keywords":["js","color","converting"],"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"_npmVersion":"11.19.0","description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","directories":{},"maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"minami":"^1.2.3","taffydb":"^2.7.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/color-convert.js_2.0.1_1791033373858_0.9535536053169682"}}},"time":{"created":"2025-10-29T23:33:43.800Z","modified":"2026-10-03T13:16:14.145Z","1.0.0":"2025-10-29T23:33:44.065Z","1.1.0":"2025-10-30T08:57:08.466Z","1.1.1":"2025-10-30T09:05:57.272Z","1.1.2":"2025-10-30T09:52:46.583Z","1.1.3":"2025-10-30T12:23:41.341Z","1.2.0":"2025-10-30T14:22:45.653Z","2.0.0":"2025-11-11T08:10:39.797Z","2.0.1":"2026-10-03T13:16:13.980Z"},"bugs":{"url":"https://github.com/eliotttak/color-convert-js/issues"},"author":{"name":"Eliott TAKVORIAN"},"license":"LGPL-3.0","homepage":"https://github.com/eliotttak/color-convert-js#readme","keywords":["js","color","converting"],"repository":{"url":"git+https://github.com/eliotttak/color-convert-js.git","type":"git"},"description":"A simple module to convert between color formats (RGB, HSL, CMYK...)","maintainers":[{"name":"eliotttak","email":"eliott@etik.com"}],"readme":"# Color-convert.js\n\n[![NPM Version](https://img.shields.io/npm/v/%40eliotttak%2Fcolor-convert.js?style=flat&label=Version&cacheSeconds=300&logoSize=1)][npm_project_page]\n[![Types](https://badgen.net/npm/types/@eliotttak/color-convert.js \"Types\")][npm_project_page]\n[![Total downloads](https://badges.ws/npm/dt/@eliotttak/color-convert.js?labelColor=4C4C4C \"Total downloads\")][npm_project_page]\n[![Weekly downloads](https://badges.ws/npm/dw/@eliotttak/color-convert.js?labelColor=4C4C4C \"Weekly downloads\")][npm_project_page]\n[![Node.js version](https://badgen.net/npm/node/@eliotttak/color-convert.js \"Node.js version\")][npm_project_page]\n\n[![Stars](https://badgen.net/github/stars/eliotttak/color-convert-js \"Stars\")][github_project_page]\n[![Watchers](https://badgen.net/github/watchers/eliotttak/color-convert-js \"Watchers\")][github_project_page]\n[![License](https://badgen.net/github/license/eliotttak/color-convert-js \"License\")][github_project_page]\n[![Forks](https://badgen.net/github/forks/eliotttak/color-convert-js \"Forks\")][github_project_page]\n[![Commits](https://badgen.net/github/commits/eliotttak/color-convert-js \"Commits\")][github_project_page]\n\n## Introduction\nColor-convert.js is a little JavaScript Library, that convert color formats, as RGB, HSL, CMYK and soon many others. It is light, and easy to use.\n\n## Availables conversions:\n- RGB <==> HSL\n- RGB <==> CMYK\n- HSL <==> CMYK\n- RGB <==> Hexadecimal\n\n\n## Installation\n\n<details><summary>Using NPM</summary>\n\nFirst install in your project\n```bash\nnpm install @eliotttak/color-convert.js\n```\n\nAnd then use it in your script\n```javascript\nconst colorConvertJs = require(\"@eliotttak/color-convert.js\")\n\nconsole.table(colorConvertJs.rgbToHsl(0, 255, 0))\n```\nOutput :\n\n| (index) | Values |\n| :-----: | :----: |\n|    h    |  120   |\n|    s    |  100   |\n|    l    |   50   |\n</details>\n<details><summary>In a website, using an URL</summary>\n\nAdd this line to you HTML\n```html\n<script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/@eliotttak/color-convert.js\"></script>\n```\n\nAnd then you can use it in your scripts:\n```javascript\nconsole.table(rgbToHsl(0, 255, 0))\n```\nOutput :\n\n| (index) | Values |\n| :-----: | :----: |\n|    h    |  120   |\n|    s    |  100   |\n|    l    |   50   |\n</details>\n\n## API\nYou can find the JSDoc documentation here : [Documentation]\n\n## Demo\n<iframe src=\"https://cdpn.io/pen/full/EaPewYJ\" width=\"500\" height=\"300\"></iframe><br />\n\nIf the demo doesn't load, find it on CodePen : [cdpn.io/pen/full/EaPewYJ](https://cdpn.io/pen/full/EaPewYJ) \n\n\n  [npm_project_page]: https://npmjs.org/package/@eliotttak/color-convert.js\n  [github_project_page]: https://github.com/eliotttak/color-convert-js\n  [Documentation]: https://eliotttak.github.io/color-convert-js\n","readmeFilename":"README.md"}