{"_id":"colorvert","_rev":"30-b4faa608097bf02e4a6f942ae94b536f","name":"colorvert","description":"Node universal color conversion tool.","dist-tags":{"latest":"0.2.1"},"versions":{"0.0.1":{"name":"colorvert","version":"0.0.1","description":"Color conversion JSON API","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","little","cms"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"express":"~4.4.0","transicc":"~1.0.2"},"scripts":{"start":"node server.js"},"_id":"colorvert@0.0.1","dist":{"shasum":"e3ee326e821d4fc2148d3cb30e6ad6c10c41ae6e","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.1.tgz","integrity":"sha512-STrFEfFC+Dfdqa3qn0WCER/tuFWehEazNeJ8X0wQwBHsps5EgNzkKH7LyqSOwgnq92p6G5GIKMn8symjzLf/SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwjJuwVRegnosUkn2zCarFw1boN1KkOZzcWum/PSZuRAiAxJxYyQuF2uz2mRa3UmJr2UZ7tsSo6h4dRw8b3pN28ow=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.0.3":{"name":"colorvert","version":"0.0.3","description":"Color conversion JSON API","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","little","cms"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"express":"~4.4.0","grunt":"^0.4.5","transicc":"~1.0.2"},"devDependencies":{"grunt":"latest","grunt-contrib-cssmin":"*","grunt-contrib-sass":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","grunt-release":"*","matchdep":"*"},"scripts":{"start":"node server.js"},"_id":"colorvert@0.0.3","_shasum":"c8472f554777430510044957593c453c0c09d359","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}],"dist":{"shasum":"c8472f554777430510044957593c453c0c09d359","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.3.tgz","integrity":"sha512-gNIJW0qIgLDPmDtNIGf75naDQvkBFewYzZ3taJ1tjC24O5N7lLyobp85/ScRkWRvJuTDFBXn0JfwwN4qW1Jx2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUbD/HnrEd+JQlAlNgZZsqylllE051t5m4+ICdbi+ebAiEAkcgG/gORrx6AvujekEnWv8iw0ZAiXbFIn/7c0rAAa1Y="}]}},"0.0.4":{"name":"colorvert","version":"0.0.4","description":"Color conversion JSON API","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","little","cms"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"express":"~4.4.0","grunt":"^0.4.5","transicc":"~1.0.2"},"devDependencies":{"grunt":"latest","grunt-contrib-cssmin":"*","grunt-contrib-sass":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","grunt-release":"*","matchdep":"*"},"scripts":{"start":"node server.js"},"_id":"colorvert@0.0.4","_shasum":"a3d58fbbf0e1be785b20762bbf4c588c28fae432","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}],"dist":{"shasum":"a3d58fbbf0e1be785b20762bbf4c588c28fae432","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.4.tgz","integrity":"sha512-4tXlMAvCP9JEkX81h+LxQvMznytXjlbHSYN6vtqGfA9LTszb4LZZoVCI/Hx8epqUGWQ+yYTvt3Ojhzy+txz+4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBV4qbC+GoTppvlRaUiLM2kYT9vgS8FecEKLYPwL/ZCAiAptTgjZOiFxAwC3okFRIIzi9o5qee2hKpQwt/9OS39pQ=="}]}},"0.0.5":{"name":"colorvert","version":"0.0.5","description":"Color conversion JSON API","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","little","cms"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"express":"~4.4.0","grunt":"^0.4.5","transicc":"~1.0.2"},"devDependencies":{"grunt":"latest","grunt-contrib-cssmin":"*","grunt-contrib-sass":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","matchdep":"*"},"scripts":{"start":"node server.js"},"_id":"colorvert@0.0.5","_shasum":"d0c9508b2707ff2b21bd93281076d3a8589ee1d1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}],"dist":{"shasum":"d0c9508b2707ff2b21bd93281076d3a8589ee1d1","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.5.tgz","integrity":"sha512-r2E/1LL7g84rZLEgDfOel3bIF/E0pQF/0xeZv1lW6znYhp0JVSpx6nfGU3SaRwQV0WwxMGcar+xcfYK/nGcoVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYwq1pUs7YefTXqbac2KNVapGr7xBuKo3qyGIhlIP3BgIgQSKl7BKi4+RncekO5DUPqatdM0WCw9zuirR7VRDpU2k="}]}},"0.0.6":{"name":"colorvert","version":"0.0.6","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.0.3"},"_id":"colorvert@0.0.6","_shasum":"f31a6706a61a27b85a334ef148d74c18964e4cd3","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}],"dist":{"shasum":"f31a6706a61a27b85a334ef148d74c18964e4cd3","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.6.tgz","integrity":"sha512-IU3uznU/wiaxEea91elpEEiy4OnhhFea8K+oetuGyO89pJAgOnEit1GsawrEQ5F6txAlVMelC4CKUBQB+KiqTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGSe5+Yaw8Ne1B3mYZobSK/TRQ0hV/xsTz03s6Cx8XhQIhAOTzp4UdDuvYIgWPo8pCdrEbcksRCoglsctxSWpe8NzF"}]}},"0.0.7":{"name":"colorvert","version":"0.0.7","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.0.3"},"_id":"colorvert@0.0.7","_shasum":"df3bbd75e2a4406b96e55304f89a45b0e37bf7ff","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}],"dist":{"shasum":"df3bbd75e2a4406b96e55304f89a45b0e37bf7ff","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.7.tgz","integrity":"sha512-IkZAYmBfru/oX9jQ3V00u15LKAGi7x4Hsm9qt+cJfsvmOigLmte1YBTdd7J/FaY4dj3L5UC+KFnuOsvj7Bnn1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwdAUxudN3rIfnW4zOoL6aMiWW+cT1w2cIaQ+OFdCLSgIgPeTsg6dT+csI1AcrglODNN8CIqz2Bl50zqOpVLw/LXE="}]}},"0.0.8":{"name":"colorvert","version":"0.0.8","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.0.4"},"_id":"colorvert@0.0.8","dist":{"shasum":"9758822656f15f9299208e815f9a710062704c48","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.8.tgz","integrity":"sha512-IYq/CLLYY41/0IphcrrQSirpGnh3enQALEDqROK9ydk5mCZl0WZ4Dnx7i6qcpNuAzePkYt8W2Orcd8JVmn9onw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5NwjABvVd5IG8/oWjViTYc6YaSfMYELVjgB4W7+vdaAiAqouu+4RSGFriDxIiRjR3z89AtLdFurZnbN1+PImVxPA=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.0.9":{"name":"colorvert","version":"0.0.9","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.0.4"},"_id":"colorvert@0.0.9","dist":{"shasum":"1df03b83b36d2af3c1fcd5d4b3748927ad2e9c02","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.0.9.tgz","integrity":"sha512-suLq+WrwXbLwBRMvVWNOjZpSGsd3gDADlWYXJ8i2x8GF/g+uN/QkzNNotnmPCzzmZhhjD46/CSGeOgwXJjHbuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLOyzk3irpLS3LXE54Ckr5P7BYTA+hw4wIXVrvEk6kHAIgcD5e/vxfPhmJfCGJx/8PYpQVIlcZixzI+fM1X2OYieU="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.1.0":{"name":"colorvert","version":"0.1.0","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"scripts":{"test":"mocha -w"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.0.5"},"devDependencies":{"mocha":"*","should":">= 0.0.1"},"_id":"colorvert@0.1.0","dist":{"shasum":"84179e8baac7de82adf917b9bbef1385a04348bd","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.1.0.tgz","integrity":"sha512-cmxCZDHnanXX7eXrOHI6hNv5QN6ALWtlOBPmH5askkdMv+snEVlXKS3ODRHdQ9yoHWDio08hOpeHcOjYDN2e1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuaGSad7FLJ+ex/Cxa32JYE0vr/aWqcXgpnxZX8e4kCwIgfqwKh/tge3jj+xQRP3J6tmIHjk0/FilHa0D2ZImSrHo="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.1.1":{"name":"colorvert","version":"0.1.1","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"scripts":{"test":"mocha -w"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.0.5"},"devDependencies":{"mocha":"*","should":">= 0.0.1"},"_id":"colorvert@0.1.1","dist":{"shasum":"3a8ac3e80583f90a87c3310e7958d7e37b500941","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.1.1.tgz","integrity":"sha512-kfxRS2quvLiPKVEcupuhf2SZCyMaAEINdXBZ6h5HJQnDRvHSAh3k+bDi2C3mzAk1Jl/EViixmeMhQ7Dlwe14UA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH7I8e4hvG7el2Ohq+gXyq15mXEgqEOEQ7mxcKnTp5mhAiBC0K0mX+AkhiZPOcSv3/4R4ayE0eqIqlceP1KwKlJ82Q=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.1.2":{"name":"colorvert","version":"0.1.2","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"scripts":{"test":"mocha -w -R spec"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.1.1"},"devDependencies":{"mocha":"*","should":"*"},"_id":"colorvert@0.1.2","dist":{"shasum":"930b5eec22b30395d085d096b2bb13f11a12192f","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.1.2.tgz","integrity":"sha512-6UsWcOP9LnYZApXo0djhvhRctH6AXeleCOPeifw1T2NmpdN/pNrF2w0yOqe6IKY6j2q7MVrh6hiP+9BY5dU3PQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUKLIc5Ysy/Ci3b5kUuv23et6EUKSkORZ36T3XuEDLygIhANhBJ7wSYgVZ4JaTFXllKa4I7ShJMaRqdiWg3FJvDJDv"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.1.3":{"name":"colorvert","version":"0.1.3","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"scripts":{"test":"mocha -w -R spec"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.1.3"},"devDependencies":{"mocha":"*","should":"*"},"_id":"colorvert@0.1.3","dist":{"shasum":"1905e95b0263b37d4bef5852ef8b9469b1f869b0","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.1.3.tgz","integrity":"sha512-ZZtCGVP2E7jvaVStwbsX711KHAiMuWQ5DyrjmMorUNOe/IdKbNvEFlX9guwA1jrd0HBX9pT51HclsWsOuPht6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1g5HkWO7FXGWKfMX79nbg/Ypa5LJHX9P/eCPXwKonuAiEA8hLKzsa6DQgBSLo6TTaxBvfc0PRo14ZCDGuUKLttrVo="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.2.0":{"name":"colorvert","version":"0.2.0","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"scripts":{"test":"mocha -w -R spec"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.2.1"},"devDependencies":{"mocha":"*","should":"*"},"_id":"colorvert@0.2.0","dist":{"shasum":"7328464d489c214c83f8b81f26bc84c4ef5aa061","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.2.0.tgz","integrity":"sha512-p6LY0j1+gx8/njUpkvADc+rIWe+ov3reuEhP6CLzOv2GWdFplzjV/Z5TDXFtYEU1NrT4jOxRQ9RNgm1Atc7m1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlF2vjO80Y67uETiEhRg7L3V1jx3hzKmlhG4Go3cFZXAIhAMIungamNjxws0ih0//IC5DMaj3d+drhtD5yD8eCzcU2"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]},"0.2.1":{"name":"colorvert","version":"0.2.1","description":"Node universal color conversion tool.","main":"colorvert.js","repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"scripts":{"test":"mocha -w -R spec"},"keywords":["color","conversion","JSON","API","node","LittleCMS"],"author":{"name":"James Pederson"},"license":"MIT","bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"homepage":"https://github.com/jpederson/colorvert","dependencies":{"transicc":"~1.2.1"},"devDependencies":{"mocha":"*","should":"*"},"_id":"colorvert@0.2.1","dist":{"shasum":"affebfcb4b20d76066ea953f26945bc7d35b7c1f","tarball":"https://registry.npmjs.org/colorvert/-/colorvert-0.2.1.tgz","integrity":"sha512-Sek6K/W9j3j64l5arK/3E+dcxRztblGH+m15K4FiV0dmF5a1OnGdP8q6dRXvDRQxWaV5mOC1bOmeV5msgNS2rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtzARBaxpJwY6JCer0F5E84JKDa2BfuzQ5cqGcplDiJAiEAlh2uOfPXnSkeYVDsYjAxKgJLfvkbq+Y8hrJ0wdFEgxQ="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jpederson","email":"james@jpederson.com"},"maintainers":[{"name":"jpederson","email":"james@jpederson.com"}]}},"readme":"## colorvert [![NPM version](https://badge.fury.io/js/colorvert.svg)](http://badge.fury.io/js/colorvert)\n\nThis node module converts colors between CMYK, Lab, XYZ, RGB, HSL, HSV, and Hex colorspaces. Colorvert uses the [transicc](https://github.com/jpederson/node-transicc) node module to provide ICC profile-based color conversions between several color spaces. If you only need conversions between ICC profiles (CMYK, Lab, XYZ, and RGB), look to that module.\n\n*For a JSON HTTP API:* Check out the [colorvert-api](https://github.com/jpederson/node-colorvert-api) node module. It uses this module and [express](https://github.com/strongloop/express) to serve HTTP endpoints that convert the input color to all other colorspaces. It's ideal for batch color conversions.\n\n*****\n\n### Installation Requirements\n\nYou must first install LittleCMS, an open source library written mostly in C for converting colors using ICC profiles. This shell script will get you there.\n\n```shell\ngit clone https://github.com/mm2/Little-CMS.git\ncd Little-CMS\n./configure \nmake \nmake check \nsudo make install\n```\n\nOnce you've installed that dependency, you're ready to install colorvert and get goin'!\n\n```shell\nnpm install colorvert --save\n```\n\n*****\n\n### Quick Examples\n\n```js\nvar cvert = require( \"colorvert\" );\n\n// CMYK, XYZ, and Lab-based conversions require\n// you to provide a callback function.\ncvert.cmyk_to_rgb( 100, 0, 0, 0, function( err, rgb ){\n\tconsole.log( rgb );\n});\n\n// RGB, HSL, HSV, and hex conversions simply \n// return values.\nvar hex = cvert.rgb_to_hex( 0, 172, 236 );\n```\n\n*****\n\n### Single Conversion\n\nIf you only need to convert from one color to another, just include that specific conversion module - it'll keep node from caching extra modules it won't need. Here's an example:\n\n```js\nvar cmyk_to_hex = require( \"colorvert/cmyk/hex\" );\n\ncmyk_to_hex( 100, 0, 0, 0, function( err, hex ){\n\tconsole.log( hex );\n});\n```\n\n*****\n\n### CMYK, Lab & XYZ Conversions\n\nThese conversions require us to use the `transicc` node module that interacts with a command line utility. As a result, we have to wait for the response before doing anything with it, so you must provide a callback when converting **to or from** any of these formats. Here's an example:\n\n```js\ncvert.cmyk_to_rgb( 100, 0, 0, 0, function( err, rgb ){\n\tconsole.log( rgb );\n});\n```\n\n*****\n\n### Math-only Conversions\n\nIf you're converting between RGB, HSL, HSV, or hex, the functions will simply return the value for you to use right away. Here's how that'll look.\n\n```js\nvar hex = cvert.rgb_to_hex( 0, 146, 210 );\nconsole.log( hex );\n```\n\n*****\n\n### Convert to ALL Other Colorspaces\n\nEach of the colorspaces includes a module that converts to all other colorspaces. As a bonus, the output will also include the hex code of the inverted color, and will suggest the most readable text color to display over the input color. Use it like so:\n\n```js\ncvert.cmyk_to_all( 100, 0, 0, 0, function( err, all ){\n\tconsole.log( all );\n\t/*\n\tOutputs:\n\t{\n\t\t\"cmyk\": {\n\t\t\t\"c\": \"100\",\n\t\t\t\"m\": \"0\",\n\t\t\t\"y\": \"0\",\n\t\t\t\"k\": \"0\"\n\t\t},\n\t\t\"lab\": {\n\t\t\t\"l\": 59,\n\t\t\t\"a\": -37,\n\t\t\t\"b\": -49\n\t\t},\n\t\t\"hex\": \"#00a0e0\",\n\t\t\"hex_inverted\": \"#ff5f1f\",\n\t\t\"hex_readable\": \"#ffffff\",\n\t\t\"hsl\": {\n\t\t\t\"h\": 197,\n\t\t\t\"s\": 100,\n\t\t\t\"l\": 43\n\t\t},\n\t\t\"hsv\": {\n\t\t\t\"h\": 197,\n\t\t\t\"s\": 100,\n\t\t\t\"v\": 87\n\t\t},\n\t\t\"rgb\": {\n\t\t\t\"r\": 0,\n\t\t\t\"g\": 160,\n\t\t\t\"b\": 224\n\t\t},\n\t\t\"xyz\": {\n\t\t\t\"x\": 52,\n\t\t\t\"y\": 71,\n\t\t\t\"z\": 197\n\t\t}\n\t}\n\t*/\n});\n```\n\n*****\n\n### Warning! :)\n\nThis module has been pretty reliable during all my tests and with everything I've thrown at it. That said, I haven't written tests for everything yet, so be sure to test it in your environment and with your input - if you find any issues, please post them on Github or submit a pull request!\n","maintainers":[{"name":"jpederson","email":"james@jpederson.com"}],"time":{"modified":"2022-06-13T06:32:16.120Z","created":"2014-06-02T05:41:45.367Z","0.0.1":"2014-06-02T05:41:45.367Z","0.0.3":"2014-06-02T19:19:23.079Z","0.0.4":"2014-06-02T19:50:15.149Z","0.0.5":"2014-06-02T22:02:31.674Z","0.0.6":"2014-06-02T22:32:28.282Z","0.0.7":"2014-06-03T00:09:45.248Z","0.0.8":"2014-06-03T02:11:53.746Z","0.0.9":"2014-06-03T02:31:07.540Z","0.1.0":"2014-06-03T17:35:43.057Z","0.1.1":"2014-06-03T20:42:25.508Z","0.1.2":"2014-06-07T15:23:19.748Z","0.1.3":"2014-06-11T00:08:36.909Z","0.2.0":"2014-06-15T03:24:29.074Z","0.2.1":"2014-10-16T15:24:13.268Z"},"homepage":"https://github.com/jpederson/colorvert","keywords":["color","conversion","JSON","API","node","LittleCMS"],"repository":{"type":"git","url":"git://github.com/jpederson/colorvert.git"},"author":{"name":"James Pederson"},"bugs":{"url":"https://github.com/jpederson/colorvert/issues"},"license":"MIT","readmeFilename":"readme.md"}