{"name":"husl","description":"Replacement for the HSL color space","keywords":["color","color space","CIE","RGB","HUSL","HSL"],"version":"5.0.1","author":{"name":"Alexei Boronine","email":"alexei@boronine.com"},"main":"husl.js","files":["husl.js"],"repository":{"type":"git","url":"http://github.com/boronine/husl.git"},"homepage":"http://www.boronine.com/husl/","devDependencies":{"coffee-script":"*","underscore":"*","uglify-js":"*","mocha":"*"},"scripts":{"test":"mocha --compilers coffee:coffee-script/register"},"gitHead":"ee9b89b48c17c704278f7b31f965866059c09492","bugs":{"url":"https://github.com/boronine/husl/issues"},"_id":"husl@5.0.1","_shasum":"e98eef2c522333953f0f7e8361cb8b8da3db267a","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"boronine","email":"alexei.boronine@gmail.com"},"maintainers":[{"name":"boronine","email":"alexei.boronine@gmail.com"}],"dist":{"shasum":"e98eef2c522333953f0f7e8361cb8b8da3db267a","tarball":"http://registry-npm.ywwl.com/husl/download/husl-5.0.1.tgz","integrity":"sha512-1yw02O+e5RLwRILQJfz7dkkAVfQm7ER5KJeAG8GIw7vKVq7r3a6SDdYfiwgmWzqXhJczGyni8CAL90hZh8b+Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsN38Rh7FHZfaw76nQg/urh5r+AlJbU8UcRfUlK3RO/wIhANAeMOep/h2vSYAtnrih1yDINxVkgnYj1hm70mlLhVr5"}],"size":4911,"noattachment":false,"key":"/husl/-/husl-5.0.1.tgz"},"deprecated":"Project renamed to HSLuv","directories":{},"readme":"# DEPRECATED\n\nIdentical functionality is provided under a new name: HSLuv.\n\nPackage: https://www.npmjs.com/package/hsluv\nDocumentation: https://github.com/hsluv/hsluv/tree/master/javascript\n\n## Usage\n\n**husl.toHex(hue, saturation, lightness)**\n\n*hue* is a number between 0 and 360, *saturation* and *lightness* are \nnumbers between 0 and 100. This function returns the resulting color as \na hex string.\n\n**husl.toRGB(hue, saturation, lightness)**\n\nLike above, but returns an array of 3 numbers between 0 and 1, for the \nr, g, and b channel.\n\n**husl.fromHex(hex)**\n\nTakes a hex string and returns the HUSL color as array that contains \nthe hue (0-360), saturation(0-100) and lightness(0-100) channel.\n_Note_: The result can have rounding errors. For example saturation can \nbe 100.00000000000007\n\n**husl.fromRGB(red, green, blue)**\n\nLike above, but *red*, *green* and *blue* are passed as numbers between \n0 and 1.\n\nUse **husl.p.toHex**, **husl.p.toRGB**, **husl.p.fromHex** and \n**husl.p.fromRGB** for the pastel variant (HUSLp). Note that HUSLp does \nnot contain all the colors of RGB, so converting arbitrary RGB to it may \ngenerate invalid HUSLp colors.\n\n","publish_time":1412330982957,"_cnpm_publish_time":1412330982957,"dist-tags":{"latest":"6.0.6"}}