{"_id":"khroma","_rev":"10-c5b27919f6452c373646f3b4784c5ddb","name":"khroma","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.0.0","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"f8edab05ba59b4d6a3a7b9b5c88d8b554d02c8b9","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-zCTOR3wyeww+ti+EbAAG8kL5ft9hKiPdFdpvc6iG7aQga9a02cjZIv0UrxG4ZMaFVk6KxqhZGAZ8b4L4jiC/Og==","shasum":"5b1decf060e0e13e9417da6a4daa7a1d3f2612c8","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.0.0.tgz","fileCount":170,"unpackedSize":142809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOG0BCRA9TVsSAnZWagAANXcP/0YOI4uDCho76Zpkat2r\nY4Zxuy6mCGibSnaPpDH3jPvv1u24kJQCeH0iIiRjHKUuEc2mnS907uDAMtFM\nTQD2EdotNAAz1nzSALAo0iAD7NrI4Smqin1iYl1/9A1DXJcjoSIvN/DU1Csn\ntFSPYl7uSlLEWhUm3388cy1RtldNL0xojrraNihC0WiAducn9TCjBwL1gwRr\nEhv2cSt7HIdd8kD4EFScDaMGi5XwlCrRE1yGlFghc20tyZKeTPCgomXG1ASm\nj2qepp1oARtTpkq71QfazN8UpBQ59CB0cwGWA/pYt+7nvXNDkPK7wzhqbYs5\nbeLcUG1Ui0SqB3iahHS3bwYBC1l5R7YO9BhG6RTonMmRlWQ/1TVKa0GcW8Cm\n4/+9F+cbwF0jFZF6oaWk0qHsZ5vH3/g7eOTczPuUzh6ZqXjtpZJNNZj04TM9\n/QAlyjRRkkVQHLDT62Y9LUKQihX0K0O29QF+3TV0vzYdRrAKyvHuh2KWPii/\nqn3RlHZZLVeYkGhBHSQmioCG8AoZlpeFa8sA5mJlSG2bPoli45QZtlYnFN0U\n2WqWu4kSBZWtB74y+haMUfYAAoVBhSRcneL08SKMx8Mr20VMYLCRteELGDUZ\n/M+ZMhkTQQ+GvLE9H8fqWp1z899akkCZol9jPOub//b7oL2N4zpEtiXNyIEu\nvIUN\r\n=xIwB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgHgOYeAG/9ozBs+uqbfpIUiqp7v0N8+revX/6lZThfQIgB5aNYOjy6CiAXd7BwkYjiNGD2jefCV7yoZUPZY61CNY="}]},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.0.0_1580756225303_0.4035620657785999"},"_hasShrinkwrap":false},"1.0.1":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.0.1","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"089d7f7c453fc182eff5a809815af7b55cca9adc","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-Z7lrLmgy5yUu8I15kFKiyAOGs8fOf9N9+FCeR2ig/vIeX5AYYKuNmfAKhM4ToupYXwUp3M352N8jjkUt52Ze5A==","shasum":"b682ea74cffe6947921c8e4ac3a797e3e12cf96c","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.0.1.tgz","fileCount":167,"unpackedSize":141024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecDfKCRA9TVsSAnZWagAAxwEP/0zHUZkoEaXejfbANuCp\ndjbjYETQSRbL9FHLDb4R0yppf3QpUTKP8xcdtphy96y41MInGG5hVX2MaoSY\n3WajugrSaVh1JcLVKY8qxl4A6XjGBn1rvqpuMaWS7/ctPAOiQBGDX9ctnRl7\nWAPbnAKYZYrQ77wGIW9yg0zC0iQavorRe6NihaSC6ohzi5isXlBhnC3eEqma\n+Wfy3xl4Yuc0QBXnw2PbEMOgNKjcsiovDCwanQAdxTbitq0HvrItPYwoaFK6\nCGi/JSfFpJcloVCEBnuWlOs9hcimYiL8iJCAjSw/Vr3J51IsMxW5PbdKJrOx\niQgJzNF7fpivv6bTBlfXxLhQ2D4XUN0qjg4GZC5yLnRnz2J6T/FTgLhZep6r\nT2v6SQ8/6zd3brh4eC5IM3yDO6T7aFfVQq6X+lF3AA2faKe6N3/LBzJZvLoG\npdsH78RPDRcYgz6Pg6zpQ8lGAIUqcmBwivQxCZoollCewOJ151aCrrCiF6LR\nowFeGLzPdVl4VVDu3pkC3gchZAXXzJWYuap5vf7qbQ8cc3Udi4xj4iS9vB+Q\n5PKcuEoJ+5qJMLu155BNSP1tTvp4I6LkKNWrcxALaeYeDoRvzB8pbBLou3xd\n+tEtV9uaQUKiNYgz06oNeHrt//aBkYLwtKzDaRV7rNpyFJcB5r2SkSKJ5yTa\naACu\r\n=pvd5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG969tZFtrNBgu0x7ECb4ad8v0uXDK6huZXyetKy3/CfAiAN5FDsGiiHrl8Y3RU0OYIh4jet6S04O/zb3rYIUMBxbA=="}]},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.0.1_1584412618069_0.3862649948494623"},"_hasShrinkwrap":false},"1.1.0":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.1.0","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"3f0111183590eab8d258fb9e59e62c6baa38f1bb","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-aTO+YX22tYOLEQJYFiatAj1lc5QZ+H5sHWFRBWNCiKwc5NWNUJZyeSeiHEPeURJ2a1GEVYcmyMUwGjjLe5ec5A==","shasum":"cc17723eb719c5245ea66d23dd577d5695452db5","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.1.0.tgz","fileCount":171,"unpackedSize":142556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemxV2CRA9TVsSAnZWagAAI8gP/jjXqOayLq3HmF9Ts2gb\nKYG1RI9wp+33YDCR2OuAs1QwCTfuONUm4LJIRqVbWjjKFupGJ31IEm8zfKS2\n9pNc02mWzMquzDeWMLYod2Od7DItIcDK01wCXb9lNmSDOqhay53F+e3WBdDl\nG7WekDUtwIYxaYgWo6c/eaiIj3b3ODD9LmgzgEHSD+cb6fsdjdek7IVxdBl1\nqc8UyTn/AS0F3YeqHl9BN1LKn2uoSYwzDnE7oNmi8u8KQbrLcbh9Yi4OQ68p\nDKe/4NWPKXHQ6WqIhdJKZ7utT50MAxM4WwcNHAPfWeMuv+H/PAUgDo9ZFnwD\n+cGgtFWp2XDFJRFrWDksbBggSWVR2ExjdZ054v/DuGet45CqSf+IQFON7XQt\nCp9JY6UMwDbIKvOlUImDKvLP1EnsDvzg1CsDOZwW68jRpg07aI/5rpM7X0BD\nmphGNlQkFvMCg34cPfdhTB0YWXQKWBj6hCy0LHp4W0PU31G9G9sUV+WPxVeG\nXdt4sOYajaiuTsdQrXkr9sKFQO0HYbAAKTbokcDDO2XAx1uw3FUffw0U6moB\nHQBUVMVJia0OrlmVEezbZcSmgvqqFfN2ghtqHkofkHy5LObAfOhKyBPDB7M5\nGQCv5OCY26lSjymB/voIUmHFFnFsew+cy8E1rSxo9EziOV3Dq1CTy13phDul\nTQrc\r\n=ga2i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDcG9QvWpbYiCUmP8/6iaj7Bz37K+IvINXTd/S72bbHAiEA1vGQPiC9yMqhH83oaWnciLrhgMJ6J2tK1wNpA8P7r5Q="}]},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.1.0_1587221878188_0.5809469686139415"},"_hasShrinkwrap":false},"1.1.1":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.1.1","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"38fcb0e0f6a7e776f07aaece7e3059f8138b5f12","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-p7SYAiFisFFmLHHCqYBNwmfTrVIlWjUq+Pw81lDvnpaXOj2sR/xszTG4873AeaEO1kYQ50Z1c9CIrtQa6bdNdA==","shasum":"de4cbd7581ed7ee0f85a4a7c9990ba62f729408c","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.1.1.tgz","fileCount":171,"unpackedSize":142580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8FVfCRA9TVsSAnZWagAAM3EP/jWZBsuUHdaPlVKs29eC\nFnCnVGWfabr8+q+HUqn8mN8G+iZHkxZnBJaccTs9qIVKDMgr9Sw2CUj3iBhO\nB9Lz4PB2DACCWpd0SYXO3HHuzNakRSpXG9Pdu5Fy+8iRn+aV7U/eLdVqy0SX\nDUW2Pxs+W3iD2P3W+rz1/nURKfs6KDer3cUI4ODa0WYmlnR2NvodAUgNigxv\nGbqSU8LLnPUdp8Rnxr6MQMkM1Ap3xauj+9JykwNhTvS15oHv24yuYUbr7hYG\n9QaH3qbRM9MhAQ2R0I3qeFTXGk5FeYD0PI87lMNDSI44PQwIQUAAK5bI2KTC\nchxe83h2twMQ9H/VDv+ybehAP8d7ZUXSge8wE3j2VvJCooGPXufoqlSbvoBN\nNLGDZpLddSEpk1qJQ2s8XRDzDUtLNM7F3kb0ZyFUrmcGaL96x6EAuHVBIYa5\nak5AQ6s0VHqNql1qHn0hMeH2wughaJLRvzUl9JAoBb6JBK4rmaoVjdUA4QIh\nH4IS00UKdlwhX5aLoqYPm72EeX58QZvTj4qPwsoGB8K7rHZbgdLhTrgeNu3w\nOSmbeRdDgGezMankH/GSAuJFKiCvleLgyAj6zDOLU5GxTZ/AnPO6w6NlZFS7\n+Xxpw/262m0J1h4jJ3fF/HxhSD2+TtMhGT8uCUUpHw8rzFuKN9lwiQAdjB65\nPt3o\r\n=HbD8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXAEUTgHZDVlnWMpgPd1NfMTXaj9C0eDrUfvxp69Ps0AiAmmNWw0IDocGBvDlsXtrf4TMvZA18XdEnM4kinaO0FFQ=="}]},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.1.1_1609586015217_0.8220401549497278"},"_hasShrinkwrap":false},"1.2.0":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.2.0","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"1af7f05d9307516c70f562253f2e338d315d8db0","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-DlKk5y243dujy8fOH02aRnnewLfiHJV0s8aXaVrCohgBf3s7fEAn6gc6LLQ21agODlFZS8ufrn+juu70uCA9Tw==","shasum":"46dcc9d7533923c228b51724db108f11fec108d8","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.2.0.tgz","fileCount":171,"unpackedSize":144085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/4YUCRA9TVsSAnZWagAA1OIP/2npZllVaz5LVWr0UsAQ\nSx/TlC1JRnfcuI1pbcM+tWFQP033a6QkIriKcWhcNMLUYdfLVy0jdwvRYyQU\nnmyKtV+SeicH8gs6WpWLSCF9S2EhdcvdJUSJdUJ2VxjUrtDP1xL/1AgOnCZs\nXthuoNEo1QmQZR8/qWFRwDh9ATW9O0uQXPTuRuDZAmCDQIR0Hq1VMjDMVtOJ\nVcAxpUhfwpxmr47VoouLcYjCHb44GVjPv8W75JbUMZ3ok86JzBfFe4C25PkN\nSisP/kykIyxrcnYylmnWjdd5vMoB/2F/RPfUT0kBqcmUDX0JRG2z8fuFZ9iK\nREG93VR1YMe/RjQ41vPsiTZloLL0KtK5IbJ4LeKhNHeJq6kLtE6Am8HyVCM5\nbFo4O9cvtlO/0CuRKKWTRkcknlHM/v7jD7UeWfwwmHjHOl3U3TqZv4fO6M13\nJcl5HCfeFbCfkrtuzzsMk/MwqiNA2jpvzZrP4bCCbPgTo3DaYXQYaTg6ZUn9\nIjTkZeBCLXEtgZy2hN2P4zJIuOSF6vBWgKjiXyJDSgSKlKITYGjOehUvlC3q\nLngcKMscQcrZPOs3BPhxaXIr71IO9Poz8eG4ZCVMGxnu/C1kYu9IhQCdpXgi\n1pLzo9N2wPnorBhbu/mP0iOyZW82cytvew6b3CkhKNgNsYqGPRs1FIRl5N8t\n+k6w\r\n=f8VT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICsYtavXLQ+OIr8dbT+MrCRl9e8q2J0qQmBN4Vasdbj1AiA3Mviao0aZaphpPs0eC2n0m2NSs7+FdE6dRlGSM/ffeQ=="}]},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.2.0_1610581524481_0.787653269981675"},"_hasShrinkwrap":false},"1.3.0":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.3.0","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"93a83a3224f62d49c9f1d5c4046fbf507fe72533","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.3.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-fpi0vIulP3FrM3BQOsEs+0ujWUNrg/YyHtEAcnvPxIHbASHNXEKEsDHtU2mADnJss7KvEdz7z2pUCQAEfFaFbA==","shasum":"1a0238ffcce1b049b8c733d5b07850a379aca04a","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.3.0.tgz","fileCount":183,"unpackedSize":147416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR8EICRA9TVsSAnZWagAARGcP/2/Rkb7+SYrtBtV6HAD4\neogNgyr/niLtB0m8Pz41Peaihqtr/8AcE9eHWM6QgsPKUY4GBC6TJv1FzdzC\nayV81ountBy07Wgm7StXpZvnDAyEmcjQBiAEHxiXp/QWXw4I8WN6YfeeF7Su\nkMgJDcN2CwAGCMxsDLMkVv9PbZ/bNBi5YfXdTnI5VPrPfboxhL8suYfoJqMA\nYTXnpMjQZ5k91vQBkKWf9JGHlhXgg7j/fh019uwqdF1fUtEiRzZePMwmwpyJ\nydZ47O48abFewP2TjC+PktM7Ivl3U3XzHWYG/ryHFFPG6n7X2Jx+bawvN0TJ\nzG36TbBvNM3UH4gnxz+0RVqSk/vxvtDv/5LBc7BGNvxvjcKojllfvxFmX8pU\nyrcrH9xBMAipGtTVwWih0rImUDHC9oIAcgXHSDykpbubSUsvhy6nbCtnjjL3\nHqj52PRg8o9vXRcvrsu46dD/tedMoewGwJlmuEv0KTUBIJc9+n6SRtARA+q9\na41oUmFO7tcLRdIePMkjoTCIjWgpWteav1b8EnwddGmapK023KS2SbwRG5do\n56zCOTZE7d9c3rTs5yEWijwqtTZBWGdvcCV2nVsUONTNxEHafpeFBXLNsHFQ\ndho9CgXB+YvRREovbAKiXNs7zJ/9J/zwA9y82hN8DUaFejzpF8eJMqEcbrsM\neTP8\r\n=QhXW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDub0uwbCT7YF/ZcnVgyIt7VwSMe+wACGHuJPKWgGmMZQIgN2dPbF6qnT880bORaGo+4uItTJ+PnsXocD0Ao+NbbOQ="}]},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.3.0_1615315207948_0.40499546434727907"},"_hasShrinkwrap":false},"1.4.0":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.4.0","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"a93b404065a26a4e717b8def9c1f9f90d5bcb104","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-C34rnH/WgniJBhbj/bXNYowRUtiNDwSdnjLraHwindnZIeZ3NOvymRMNHmj4KeZWFTbn+cVxj2iT/jsonG2Xrg==","shasum":"b69407254ac4839a8b94913d3039ed170cf0f16b","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.4.0.tgz","fileCount":187,"unpackedSize":150427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeHw9CRA9TVsSAnZWagAAMnEP/1MVp6ee1TwP7OTgDNXS\nfIwo/hWGgqckOPA8QpCGIfDHX7miYYn0WSuxssWlTiMCE8qMVlHpxhJRguOP\n58L74Omea8nLwlVXJ7nXHAeY0kgSVq59xucxnBRqMmd1epbckp4c9lmGnfrQ\nuFsy8sxW0rN8V9/cxQF+0cnuK78IGhJDE/4WpArga2d/IfeZw8VL4PcPH2sW\nzEqUMV3zci/yTvqd+UPAUs3pn7l2MffKhlczRj2v1g4N9+TBEfS85gaLw4dQ\nMFqYodP8FptJ2ns8aLTeek+K57DNWKrKam0vJ0fVCWHPUnvC6qru9Wz+TLGd\nqKRqVWWONF/iJ03i7+er95kC9fhVDjgHFwitKtXd1BqWszN2EKdMpVGDBueb\nvAo4pJ02NHsWR6BoLUsL40BZYWvBiahHtndO35/5JcytLl+eY1yXVj1CMUq1\nVT3radTarqIwYbKNYpNaEdhL1sdEhG3/AN8wgADx7SFEzFvUwKWUDP0rpL33\nVqjPiQ/nxvmaqJBaJR36QzkZigmIYbG54QSACtMCSfDcKS5Rbju0QcaWJjWY\nUrdl85II/sLlfyjbJx1RXAXUsr/ImZ7UOyPMKAXm+PfHTF4G1jidy9G0C8no\nAgikYwJFztpZTUfryakP3NOAKjMlojlr8lQetbor7qmjXf6BkYlsJeBtL2od\n7Noc\r\n=jgft\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8L/nT2tCJ5hH0pGt4NwFA9/QSsC2TwFTKDFibjVStqQIgSSftnYrZ9Qz9hWn8AElCQWa8O9y9Ueu0+ufPKYgdPWE="}]},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.4.0_1618508861348_0.22273913613514584"},"_hasShrinkwrap":false},"1.4.1":{"name":"khroma","description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"1.4.1","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","clean:coverage":"rimraf coverage .nyc_output","clean":"npm run clean:dist && npm run clean:coverage","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","test":"ava","test:watch":"ava --watch","coverage":"nyc --reporter=html ava","report":"nyc report","report:html":"open coverage/index.html","prepublishOnly":"npm run clean && npm run compile && npm run coverage","dev":"concurrently -i -n compile,test npm:compile:watch npm:test:watch"},"ava":{"files":["test/**/*.js"]},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"dependencies":{},"devDependencies":{"@types/node":"^13.5.3","ava":"^2.4.0","ava-spec":"^1.1.1","benchloop":"^1.3.1","concurrently":"^5.1.0","nyc":"^15.0.0","rimraf":"^3.0.1","typescript":"^3.7.5","typescript-transform-export-interop":"^1.0.2"},"gitHead":"3a6e209c662ffd62ec075e7d0b49a35668805464","homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@1.4.1","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-+GmxKvmiRuCcUYDgR7g5Ngo0JEDeOsGdNONdU2zsiBQaK4z19Y2NvXqfEDE0ZiIrg45GTZyAnPLVsLZZACYm3Q==","shasum":"ad6a5b6a972befc5112ce5129887a1a83af2c003","tarball":"https://registry.npmjs.org/khroma/-/khroma-1.4.1.tgz","fileCount":187,"unpackedSize":150001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgefxOCRA9TVsSAnZWagAAN+EP/2x5YEtJ45nI6FGPLa7I\n91xYaSD64aaJPAGYzBQTu6M6eJ60oJ7cXz0HGRCa7ghyEbCT3G1aU0KT3Dd5\nTMOP5UrxvkSAL+ihNgtgvqy+iXzLsaYXMe6rI79gEPmlXSQSvpOMF1hC/IVQ\n+//FpOclVgMUvTX2rCVCisYzJJ8rm8SF082feOnrzPTDCRcd2Ss1gCkz2QO0\n3DoRlqv1/DjGedK6WlRSdkkhbKzSterfYGY8hG/clwZRXMmT1R2IFlEy2Mkx\nxCnEhPpLTnzzgKogn3BKVzzBeemBPrt2N66V1vSTv4B7GwDl4DfGzpM1JpEs\nQmEpLG/TREfbaQLnp8DzmbREGYye3RCdeWq+mMEx/ulIQzyk6Y4gyyuvMQAp\nOLoVI0+Dn3yyW32bgZYKU7vhY2E/ikV0P9xpeSLuFTNxEQHbKmdsJnT+kaGG\naWjYLnr5madh+M5dUTxZf1pcByzaityUswf349kKmPkd2LOH1DyjQbL0v49n\nVEdbHysvIvB4smfpXMVPscLpUEHUpg3ske3rWXZ5svBxudTHQUOa5sZBnFg7\nn/WLn4lw+uMhRxz9jCoonVJGAK5megrEPEAgSvDdnCWtVnjf7TVTqv0M9O8A\nCQXJrYfNE0BpZWr+3LnfBZ3dE7Vm4iUctV6qBEp+yBpxZ2whGmKU/+ssgMoQ\nM3Gs\r\n=gBE1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAk1GClV10OL0Qi43YWvl2ayylTx7TAEOZ1iDn44kcgbAiBLhoYiViswxcznaR5/N2hnsZBfd22EUeO3fkPoYKc0jg=="}]},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_1.4.1_1618607182444_0.8879109188091145"},"_hasShrinkwrap":false},"2.0.0":{"name":"khroma","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"2.0.0","type":"module","sideEffects":false,"main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"devDependencies":{"benchloop":"^1.3.2","fava":"^0.0.6","tsex":"^1.1.0","typescript":"^4.6.3"},"gitHead":"f998e9b67936dbe4d35e43cc0772717bd9ce8ea2","bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@2.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-2J8rDNlQWbtiNYThZRvmMv5yt44ZakX+Tz5ZIp/mN1pt4snn+m030Va5Z4v8xA0cQFDXBwO/8i42xL4QPsVk3g==","shasum":"7577de98aed9f36c7a474c4d453d94c0d6c6588b","tarball":"https://registry.npmjs.org/khroma/-/khroma-2.0.0.tgz","fileCount":187,"unpackedSize":141529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBH5b3wKstwNtxbSf4n1jMkRhHZqWJ5Xh7neODx89+ncAiEAm/iraAi7/VeHR3vJ9uWr7WgApaPuwaMZT22vI/t9um0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTym4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxIBAAgVLLTqGUYC/4+YlZXsLtl43pE6eLTlPax6uWczB7zK2OxmZ9\r\nRwYrsby/X+qGiwjkG+iPVztbv1BiNxhszfLIwzXDOXZPjLQWciSzARHQ8NwB\r\njbTXBSOzQ1A3Tcms6hEVOYxI8dmMJXg/U1laOC9GgEi4ssBTmdWPM3ICF8Sj\r\n1kfTbkZNoN27sArub7XOWVXuC4gA2xd2GU0dnIONaW5ns6fDfPvWyhHaprWO\r\nyWg6NaINNtXJy31YMwdUrugoC7qG/LjFasnKsFYT2irDoDpEaB3Gqqvpu9F6\r\nNA0NYSq96r2K8H5daBeGJLKVn0r0wP5q6ncBloViGLnGS+YZt4nhWYZ+qM4j\r\niaxHGbmXxHgWH67S80n80BZljBA5I8YgGIm9sJAieIBLB9bmi90Aln9gEUkh\r\nLpjMKQSPh5UHREGojB5bTpa5MbX/glDUsOMdlPRebcbrLMInqsPSRG7K2nsU\r\nTM8Um+D/v72soplEC63OLkitxKtmQTXtJ16YCWJb0QpSJlAIc2uXK+6ybs2S\r\nPyJmMcPYili3WTJusYJzD5iG/K/GbvCKJsCcDwr7C/jIW2p1OreKFghghrZt\r\n/22yUa/bwaVWqVXlEIfLNKndyqTl+m+ka/yFBchCaXOWyQskIjefaTWYmFiy\r\nPsX/ORUYpousHctu3cNXnz3ysrMx9SeRu5g=\r\n=vjS9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_2.0.0_1649355192667_0.6891728553029257"},"_hasShrinkwrap":false},"2.1.0":{"name":"khroma","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"description":"A collection of functions for manipulating CSS colors, inspired by SASS.","version":"2.1.0","type":"module","sideEffects":false,"main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"devDependencies":{"benchloop":"^2.1.1","fava":"^0.2.1","tsex":"^3.0.1","typescript":"^5.1.6"},"gitHead":"4968165afb0d3d09be66497e7985a34f7bfe6d42","bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"homepage":"https://github.com/fabiospampinato/khroma#readme","_id":"khroma@2.1.0","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==","shasum":"45f2ce94ce231a437cf5b63c2e886e6eb42bbbb1","tarball":"https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz","fileCount":191,"unpackedSize":143253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqSuNt6WtxbVKr+VmzXHgcQW61YpCE5DXnlyWBfzDltQIhAOnNF9+pS6a3hYOcyxPZZSQw7ew9bTH0Zd7uKy+QwsRS"}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/khroma_2.1.0_1697151817819_0.8367902154884228"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-03T18:57:05.302Z","1.0.0":"2020-02-03T18:57:05.419Z","modified":"2023-10-12T23:03:38.311Z","1.0.1":"2020-03-17T02:36:58.230Z","1.1.0":"2020-04-18T14:57:58.276Z","1.1.1":"2021-01-02T11:13:35.412Z","1.2.0":"2021-01-13T23:45:24.599Z","1.3.0":"2021-03-09T18:40:08.129Z","1.4.0":"2021-04-15T17:47:41.551Z","1.4.1":"2021-04-16T21:06:22.583Z","2.0.0":"2022-04-07T18:13:12.871Z","2.1.0":"2023-10-12T23:03:38.130Z"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"description":"A collection of functions for manipulating CSS colors, inspired by SASS.","homepage":"https://github.com/fabiospampinato/khroma#readme","keywords":["sass","color","manipulation","manipulate","css","hex","rgb","hsl"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/khroma.git"},"bugs":{"url":"https://github.com/fabiospampinato/khroma/issues"},"readme":"# [Khrôma](https://en.wiktionary.org/wiki/%CF%87%CF%81%E1%BF%B6%CE%BC%CE%B1)\n\nA collection of functions for manipulating CSS colors, inspired by SASS.\n\n## Features\n\n- **Small**: the entire library weighs ~5kb (min + gzip) and has no dependencies.\n- **Fast**: in our benchmark suite functions are executed at ~0.0025ms per call on a mid-2014 MBP.\n- **Flexible**: All valid CSS colors are supported.\n- **SASS-like**: if you're familiar with SASS you should feel right at home.\n\n## Install\n\n```sh\nnpm install --save khroma\n```\n\n## Usage\n\n```ts\nimport {red, isDark, darken, change} from 'khroma';\n\nred ( '#ffffff' ); // => 255\nisDark ( 'white' ); // => false\ndarken ( 'hsl(0, 5%, 100%)', 50 ); // => 'hsl(0, 5%, 50%)'\nchange ( 'rgb(255, 255, 255)', { a: 0.5 } ); // => 'rgba(255, 255, 255, 0.5)'\n```\n\n## Functions\n\nThese are all the provided functions, for each of them below you can find a short description, its interface and examples.\n\n| Create        | Convert                 | Get <sub>channel</sub>    | Get <sub>more</sub>             | Edit <sub>channel</sub>           | Edit <sub>more</sub> |\n| ------------- | ----------------------- | ------------------------- | ------------------------------- | --------------------------------- | -------------------- |\n| [hex](#hex)   | [toKeyword](#tokeyword) | [channel](#channel)       | [contrast](#contrast)           | [saturate](#saturate)             | [adjust](#adjust)    |\n| [rgb](#rgb)   | [toHex](#tohex)         | [red](#red)               | [luminance](#luminance)         | [desaturate](#desaturate)         | [change](#change)    |\n| [rgba](#rgba) | [toRgba](#torgba)       | [green](#green)           | [isDark](#isdark)               | [lighten](#lighten)               | [invert](#invert)    |\n| [hsl](#hsl)   | [toHsla](#tohsla)       | [blue](#blue)             | [isLight](#islight)             | [darken](#darken)                 | [mix](#mix)          |\n| [hsla](#hsla) |                         | [hue](#hue)               | [isTransparent](#istransparent) | [opacify](#opacify)               | [scale](#scale)      |\n|               |                         | [saturation](#saturation) | [isValid](#isvalid)             | [fadeIn](#fadein)                 |                      |\n|               |                         | [lightness](#lightness)   |                                 | [transparentize](#transparentize) |                      |\n|               |                         | [alpha](#alpha)           |                                 | [fadeOut](#fadeout)               |                      |\n|               |                         | [opacity](#opacity)       |                                 | [rgba](#rgba-alt) (alt)           |                      |\n|               |                         |                           |                                 | [complement](#complement)         |                      |\n|               |                         |                           |                                 | [grayscale](#grayscale)           |                      |\n\n### Create\n\nThese functions create a new color given the provided channels.\n\n#### `hex`\n\nAlias for [`rgba`](#rgba).\n\n#### `rgb`\n\nAlias for [`rgba`](#rgba).\n\n#### `rgba`\n\nCreates a new color given its rgba channels, the alpha channel is optional.\n\n```ts\nfunction rgba ( r: string, g: number, b: number, a: number = 1 ): string;\n```\n\n```ts\nrgba ( 255, 204, 0 ); // => '#ffcc00'\nrgba ( 255, 204, 0, 0.5 ); // => 'rgba(255, 204, 0, 0.5)'\n```\n\n#### `hsl`\n\nAlias for [`hsla`](#hsla).\n\n#### `hsla`\n\nCreates a new color given its hsla channels, the alpha channel is optional.\n\n```ts\nfunction hsla ( h: number, s: number, l: number, a: number = 1 ): string;\n```\n\n```ts\nhsla ( 0, 50, 100 ); // => 'hsl(0, 50%, 100%)'\nhsla ( 10, 50, 100, 0.5 ); // => 'hsla(10, 50%, 100%, 0.5)'\n```\n\n### Convert\n\nThese functions convert supported colors to a specific format.\n\n#### `toKeyword`\n\nConvert a color to the keyword format, when possible.\n\n```ts\nfunction toKeyword ( color: string ): string | undefined;\n```\n\n```ts\ntoKeyword ( '#ff0000' ); // => 'red'\ntoKeyword ( '#ffcc00' ); // => undefined\n```\n\n#### `toHex`\n\nConvert a color to the HEX format.\n\n```ts\nfunction toHex ( color: string ): string;\n```\n\n```ts\ntoHex ( 'red' ); // => '#ff0000'\ntoHex ( '#ff0000' ); // => '#ff0000'\n```\n\n#### `toRgba`\n\nConvert a color to the RGBA format.\n\n```ts\nfunction toRgba ( color: string ): string;\n```\n\n```ts\ntoRgba ( 'red' ); // => 'rgb(255, 0, 0)'\ntoRgba ( '#ff0000' ); // => 'rgb(255, 0, 0)'\ntoRgba ( '#00000088' ); // => 'rgba(0, 0, 0, 0.5333333333)'\n```\n\n#### `toHsla`\n\nConvert a color to the HSLA format.\n\n```ts\nfunction toHsla ( color: string ): string;\n```\n\n```ts\ntoHsla ( 'red' ); // => 'hsl(0, 100%, 50%)'\ntoHsla ( '#ff0000' ); // => 'hsl(0, 100%, 50%)'\ntoHsla ( 'rgb(255, 0, 0)' ); // => 'hsl(0, 100%, 50%)'\n```\n\n### Get <sub>channel</sub>\n\nThese functions get a single channel from the provided color.\n\n#### `channel`\n\nGets any single channel of the color.\n\n```ts\nfunction channel ( color: string, channel: 'r' | 'g' | 'b' | 'h' | 's' | 'l' | 'a' ): number;\n```\n\n```ts\nchannel ( '#ffcc00', 'r' ); // => 255\nchannel ( '#ffcc00', 'h' ); // => 48\nchannel ( '#ffcc00', 'a' ); // => 1\n```\n\n#### `red`\n\nGets the red channel of the color.\n\n```ts\nfunction red ( color: string ): number;\n```\n\n```ts\nred ( '#ffcc00' ); // => 255\n```\n\n#### `green`\n\nGets the green channel of the color.\n\n```ts\nfunction green ( color: string ): number;\n```\n\n```ts\ngreen ( '#ffcc00' ); // => 204\n```\n\n#### `blue`\n\nGets the blue channel of the color.\n\n```ts\nfunction blue ( color: string ): number;\n```\n\n```ts\nblue ( '#ffcc00' ); // => 0\n```\n\n#### `hue`\n\nGets the hue channel of the color.\n\n```ts\nfunction hue ( color: string ): number;\n```\n\n```ts\nhue ( 'hsl(0, 50%, 100%)' ); // => 0\n```\n\n#### `saturation`\n\nGets the saturation channel of the color.\n\n```ts\nfunction saturation ( color: string ): number;\n```\n\n```ts\nsaturation ( 'hsl(0, 50%, 100%)' ); // => 50\n```\n\n#### `lightness`\n\nGets the lightness channel of the color.\n\n```ts\nfunction lightness ( color: string ): number;\n```\n\n```ts\nlightness ( 'hsl(0, 50%, 100%)' ); // => 100\n```\n\n#### `alpha`\n\nGets the alpha channel of the color.\n\n```ts\nfunction alpha ( color: string ): number;\n```\n\n```ts\nalpha ( '#ffcc00' ); // => 1\nalpha ( 'rgba(255, 205, 0, 0.5)' ); // => 0.5\n```\n\n#### `opacity`\n\nAlias for [`alpha`](#alpha).\n\n### Get <sub>more</sub>\n\nThese functions get some other information from the provided color.\n\n#### `contrast`\n\nGets the contrast in luminance between two colors.\n\nContrast values go between 1 and 10. 1 means same color, >= 4 means decent contrast, >= 7 means great contrast, 10 means great contrast.\n\n```ts\nfunction contrast ( color1: string, color2: string ): number;\n```\n\n```ts\ncontrast ( '#000000', '#000000' ); // => 1\ncontrast ( '#000000', '#ffffff' ); // => 10\ncontrast ( '#888888', '#ffffff' ); // => 4.0617165366\n```\n\n#### `luminance`\n\nGets the [relative luminance](https://en.wikipedia.org/wiki/Relative_luminance) of the color.\n\n```ts\nfunction luminance ( color: string ): number;\n```\n\n```ts\nluminance ( 'black' ); // => 0\nluminance ( 'white' ); // => 1\nluminance ( '#ffcc00' ); // => 0.6444573127\n```\n\n#### `isDark`\n\nChecks if the provided color is a dark color.\n\n```ts\nfunction isDark ( color: string ): number;\n```\n\n```ts\nisDark ( 'black' ); // => true\nisDark ( 'white' ); // => false\nisDark ( '#ffcc00' ); // => false\n```\n\n#### `isLight`\n\nChecks if the provided color is a light color.\n\n```ts\nfunction isLight ( color: string ): number;\n```\n\n```ts\nisLight ( 'black' ); // => false\nisLight ( 'white' ); // => true\nisLight ( '#ffcc00' ); // => true\n```\n\n#### `isTransparent`\n\nChecks if the provided color is a transparent color.\n\n```ts\nfunction isTransparent ( color: string ): boolean;\n```\n\n```ts\nisTransparent ( 'transparent' ); // => true\nisTransparent ( '#ffcc0000' ); // => true\nisTransparent ( '#ffcc00' ); // => false\n```\n\n#### `isValid`\n\nChecks if the provided color is a valid color.\n\n```ts\nfunction isLight ( color: string ): boolean;\n```\n\n```ts\nisValid ( 'black' ); // => true\nisValid ( '#ffcc00' ); // => true\nisValid ( '#wtf' ); // => false\n```\n\n### Edit <sub>channel</sub>\n\nThese functions change a single channel of the provided color.\n\n#### `saturate`\n\nIncreases the saturation channel of the color.\n\n```ts\nfunction saturate ( color: string, amount: number ): string;\n```\n\n```ts\nsaturate ( 'hsl(0, 50%, 50%)', 25 ); // => 'hsl(0, 75%, 50%)'\n```\n\n#### `desaturate`\n\nDecreases the saturation channel of the color.\n\n```ts\nfunction desaturate ( color: string, amount: number ): string;\n```\n\n```ts\ndesaturate ( 'hsl(0, 50%, 50%)', 25 ); // => 'hsl(0, 25%, 50%)'\n```\n\n#### `lighten`\n\nIncreases the lightness channel of the color.\n\n```ts\nfunction lighten ( color: string, amount: number ): string;\n```\n\n```ts\nlighten ( 'hsl(0, 50%, 50%)', 25 ); // => 'hsl(0, 50%, 75%)'\n```\n\n#### `darken`\n\nDecreases the lightness channel of the color.\n\n```ts\nfunction darken ( color: string, amount: number ): string;\n```\n\n```ts\ndarken ( 'hsl(0, 50%, 50%)', 25 ); // => 'hsl(0, 50%, 25%)'\n```\n\n#### `opacify`\n\nIncreases the opacity channel of the color.\n\n```ts\nfunction opacify ( color: string, amount: number ): string;\n```\n\n```ts\nopacify ( 'rgba(255, 204, 0, 0.5)', 0.25 ); // => 'rgba(255, 204, 0, 0.75)'\n```\n\n#### `fadeIn`\n\nAlias for [`opacify`](#opacify).\n\n#### `transparentize`\n\nDecreases the opacity channel of the color.\n\n```ts\nfunction transparentize ( color: string, amount: number ): string;\n```\n\n```ts\ntransparentize ( 'rgba(255, 204, 0, 0.5)', 0.25 ); // => 'rgba(255, 204, 0, 0.25)'\n```\n\n#### `fadeOut`\n\nAlias for [`transparentize`](#transparentize).\n\n#### `rgba` (alt)\n\nSets a new value for the opacity channel.\n\n```ts\nfunction rgba ( color: string, amount: number ): string;\n```\n\n```ts\nrgba ( 'rgba(255, 204, 0, 0.5)', 0.1 ); // => 'rgba(255, 204, 0, 0.1)'\n```\n\n#### `complement`\n\nGets the complement of the color, rotating its hue channel by 180 degrees.\n\n```ts\nfunction complement ( color: string ): string;\n```\n\n```ts\ncomplement ( '#ffcc00' ); // => 'hsl(228, 100%, 50%)'\n```\n\n#### `grayscale`\n\nGets the grayscale version of the color, setting its saturation to 0.\n\n```ts\nfunction grayscale ( color: string ): string;\n```\n\n```ts\ngrayscale ( '#ffcc00' ); // => 'hsl(48, 0%, 50%)'\n```\n\n### Edit <sub>more</sub>\n\nThese functions can/will change more than a single channel at once of the provided color.\n\n#### `adjust`\n\nIncreases or decreases the value of any channel of the color.\n\n```ts\nfunction adjust ( color: string, channels: Record<'r' | 'g' | 'b' | 'h' | 's' | 'l' | 'a', number> ): string;\n```\n\n```ts\nadjust ( '#ffcc00', { r: -10, g: 200 } ); // => '#f5ff00'\nadjust ( '#ffcc00', { a: -0.5 } ); // => 'rgba(255, 204, 0, 0.5)'\nadjust ( '#ffcc00', { h: 50, l: -30 } ); // => 'hsl(98, 100%, 20%)'\n```\n\n#### `change`\n\nSets a new value for any channel of the color.\n\n```ts\nfunction change ( color: string, channels: Record<'r' | 'g' | 'b' | 'h' | 's' | 'l' | 'a', number> ): string;\n```\n\n```ts\nchange ( '#ffcc00', { r: 10, g: 200 } ); // => '#0ac800'\nchange ( '#ffcc00', { a: 0.5 } ); // => 'rgba(255, 204, 0, 0.5)'\nchange ( '#ffcc00', { h: 50, l: 30 } ); // => 'hsl(50, 100%, 30%)'\n```\n\n#### `invert`\n\nGets the inverse of the color.\n\n```ts\nfunction invert ( color: string, weight: number = 100 ): string;\n```\n\n```ts\ninvert ( '#ffcc00' ); // => '#0033ff'\ninvert ( '#ffcc00', 50 ); // => '#808080'\n```\n\n#### `mix`\n\nMixes two colors together.\n\n```ts\nfunction mix ( color1: string, color2: string, weight: number = 50 ): string;\n```\n\n```ts\nmix ( 'red', 'blue' ); // => '#800080'\nmix ( 'red', 'blue', 15 ); // => '#2600d9'\n```\n\n#### `scale`\n\nScales any channel of the color.\n\n```ts\nfunction scale ( color: string, channels: Record<'r' | 'g' | 'b' | 'h' | 's' | 'l' | 'a', number> ): string;\n```\n\n```ts\nscale ( '#ffcc00', { r: -50, b: 10 } ); // => '#80cc1a'\n```\n\n## License\n\nMIT © Fabio Spampinato, Andrew Maney\n","readmeFilename":"readme.md"}