{"_id":"@sphinxxxx/color-conversion","_rev":"4539020","name":"@sphinxxxx/color-conversion","description":"Convert colors between RGBA/HSLA/Hex","dist-tags":{"latest":"2.2.2"},"maintainers":[{"name":"sphinxxxx","email":""}],"time":{"modified":"2026-04-09T15:07:08.000Z","created":"2018-02-23T19:58:26.428Z","2.2.2":"2019-08-02T22:13:22.419Z","2.2.1":"2019-01-11T21:22:55.766Z","2.2.0":"2018-11-12T21:46:20.634Z","2.1.1":"2018-05-20T00:28:42.891Z","2.1.0":"2018-05-20T00:17:37.656Z","2.0.0":"2018-04-10T19:00:03.708Z","2.0.0-alpha.3":"2018-02-23T20:13:27.874Z","2.0.0-alpha.2":"2018-02-23T19:58:26.428Z"},"users":{},"author":{"name":"Joudee","url":"https://github.com/Joudee"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"versions":{"2.2.2":{"name":"@sphinxxxx/color-conversion","version":"2.2.2","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"6e813be266923b742a253d3876e258925c887ccc","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.2.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"03ecc29279e3c0c832f6185a5bfa3497858ac8ca","size":12149,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.2.2.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.2.2_1564784002286_0.9506207279139971"},"_hasShrinkwrap":false,"publish_time":1564784002419,"_cnpm_publish_time":1564784002419,"_cnpmcore_publish_time":"2021-12-16T16:08:14.967Z"},"2.2.1":{"name":"@sphinxxxx/color-conversion","version":"2.2.1","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"1006f14ee5e724fce66fe533e70aa9a04bf35458","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.2.1","_shasum":"88e94a50fa79f48bb0d1490bb716df8d506941dd","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"88e94a50fa79f48bb0d1490bb716df8d506941dd","size":10926,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.2.1.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.2.1_1547241775629_0.9817803372286495"},"_hasShrinkwrap":false,"publish_time":1547241775766,"_cnpm_publish_time":1547241775766,"_cnpmcore_publish_time":"2021-12-16T16:08:15.199Z"},"2.2.0":{"name":"@sphinxxxx/color-conversion","version":"2.2.0","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"7c69bcb973ca4122fc57f2e934cc4bd65f86ba31","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.2.0","_shasum":"d973a85a068eb5c8e894aa540129d140289c63a7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"d973a85a068eb5c8e894aa540129d140289c63a7","size":8221,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.2.0.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.2.0_1542059180478_0.5052997006220323"},"_hasShrinkwrap":false,"publish_time":1542059180634,"_cnpm_publish_time":1542059180634,"_cnpmcore_publish_time":"2021-12-16T16:08:15.412Z"},"2.1.1":{"name":"@sphinxxxx/color-conversion","version":"2.1.1","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"7c69bcb973ca4122fc57f2e934cc4bd65f86ba31","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.1.1","_shasum":"da281a9641eb3f699979432fe531bba520e3ffbb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"da281a9641eb3f699979432fe531bba520e3ffbb","size":7638,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.1.1.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.1.1_1526776122782_0.6909357897343462"},"_hasShrinkwrap":false,"publish_time":1526776122891,"_cnpm_publish_time":1526776122891,"_cnpmcore_publish_time":"2021-12-16T16:08:15.633Z"},"2.1.0":{"name":"@sphinxxxx/color-conversion","version":"2.1.0","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"eeab3aa3046f0d6c041ef1a5440d259bf08f6037","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.1.0","_shasum":"f2178e280682df1a9ee12a9a9f0b718d9912aea4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"f2178e280682df1a9ee12a9a9f0b718d9912aea4","size":7642,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.1.0.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.1.0_1526775457527_0.8050140937700705"},"_hasShrinkwrap":false,"publish_time":1526775457656,"_cnpm_publish_time":1526775457656,"_cnpmcore_publish_time":"2021-12-16T16:08:15.840Z"},"2.0.0":{"name":"@sphinxxxx/color-conversion","version":"2.0.0","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"2873a19ae0f0f5132cc8622e80e609cd30f7ec1a","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.0.0","_shasum":"307c15612d3dc5e3197fd7ccc019008c3edeaf45","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"307c15612d3dc5e3197fd7ccc019008c3edeaf45","size":5926,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.0.0.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.0.0_1523386803603_0.6847648184871686"},"_hasShrinkwrap":false,"publish_time":1523386803708,"_cnpm_publish_time":1523386803708,"_cnpmcore_publish_time":"2021-12-16T16:08:16.057Z"},"2.0.0-alpha.3":{"name":"@sphinxxxx/color-conversion","version":"2.0.0-alpha.3","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"29afa0ae3b0a1f9196a455e1423478eccd26d3d1","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.0.0-alpha.3","_shasum":"b8df1579902be601f46b20788f11cf1a27a48221","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"b8df1579902be601f46b20788f11cf1a27a48221","size":5920,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.0.0-alpha.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.0.0-alpha.3.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.0.0-alpha.3_1519416807834_0.7702954469064247"},"_hasShrinkwrap":false,"publish_time":1519416807874,"_cnpm_publish_time":1519416807874,"_cnpmcore_publish_time":"2021-12-16T16:08:16.316Z"},"2.0.0-alpha.2":{"name":"@sphinxxxx/color-conversion","version":"2.0.0-alpha.2","description":"Convert colors between RGBA/HSLA/Hex","homepage":"https://github.com/Sphinxxxx/color-conversion","author":{"name":"Joudee","url":"https://github.com/Joudee"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/color-conversion.git"},"main":"dist/color-conversion.js","module":"src/color.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"29afa0ae3b0a1f9196a455e1423478eccd26d3d1","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"_id":"@sphinxxxx/color-conversion@2.0.0-alpha.2","_shasum":"99b75b6da606fc0420d3a524e066465ba5270660","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"99b75b6da606fc0420d3a524e066465ba5270660","size":5977,"noattachment":false,"key":"/@sphinxxxx/color-conversion/-/@sphinxxxx/color-conversion-2.0.0-alpha.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sphinxxxx/color-conversion/download/@sphinxxxx/color-conversion-2.0.0-alpha.2.tgz"},"maintainers":[{"name":"sphinxxxx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-conversion_2.0.0-alpha.2_1519415906373_0.5313220700754904"},"_hasShrinkwrap":false,"publish_time":1519415906428,"_cnpm_publish_time":1519415906428,"_cnpmcore_publish_time":"2021-12-16T16:08:16.525Z"}},"readme":"# color-conversion\n\nJavaScript library for color conversion and manipulation with support for CSS color syntax.\n\nDemo: https://rawgit.com/Sphinxxxx/color-conversion/master/demo/index.html\n\n## Usage\n\n```js\n<script src=\"https://unpkg.com/@sphinxxxx/color-conversion@2\"></script>\n\n<script>\n    //rgba/hsla/hex string, CSS color name, or rgba array:\n    var color = new Color('rgb(200, 250, 0)');\n    \n    color.hsla;  // [0.2, 1, 0.49, 1]\n    color.rgba;  // [200, 250, 0, 1]\n    \n    color.hslaString;  // \"hsla(72,100%,49.02%,1)\"\n    color.rgbaString;  // \"rgba(200,250,0,1)\"\n    color.hex;         // \"#c8fa00ff\"\n</script>\n```\n","_attachments":{},"homepage":"https://github.com/Sphinxxxx/color-conversion","bugs":{"url":"https://github.com/Sphinxxxx/color-conversion/issues"},"license":"ISC"}