{"_id":"@bluefirex/color-ts","_rev":"6-186e409722648cfc6206ad9644d1d851","name":"@bluefirex/color-ts","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@bluefirex/color-ts","version":"1.0.0","keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","_id":"@bluefirex/color-ts@1.0.0","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"homepage":"https://github.com/bluefirex/color-ts#readme","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"dist":{"shasum":"6c3fbfcab8e3e2523e64910b4a9304211aa976d9","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.0.0.tgz","fileCount":6,"integrity":"sha512-NUkOSNEfGr1I4b7QnLM4J/Mf+4zi3Vt+a1BgkLjVmVfFac6Aj3pmN0UtZT2y3Mpz42QFhTgUQI6BnVS/McHopA==","signatures":[{"sig":"MEYCIQCbeiU3ZUkLQA0U+ES0wnnyEMjjjtlQ2oIH5R+vzjKBaQIhAKe8k95s/+uiHv8YhGEiYGvpl3w7EKI8XQ0g5cYtcLtc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKMJYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvKA//at0yuI4ByAl/MFLDb2J42mRYvRWmKUvf9cJDNEN2+1/Fh8V5\r\n0KN+vzMxTxjlYeH6RjDUg+T4qa5YnMC8cONCdC15IhN7UGg7H4iDwJo62k+/\r\nqKbWV/sz712JdutExzU095YSZh943PyO9SJ7qbWB2z6bN6ANzSZBSYPuWr7S\r\nadcRxssk/iSeNkMJlnYZDWUs7iAiDEWkXCTO0tOnGKPPjP3AwwuwjpFoo3FU\r\nnfWe88cYb8vEi9rZv9YXNCohtSkttGV26EY1hL9BTXLS46BzG6sM+hqDgREC\r\nbp4cjMEkoqjY7u6SL4tfEBIAvegNuVZ309vtT/0bNUREAg4BHHdmkGDp56kq\r\n7/f0gBR1fIy9u3YVhPnl/4A68TQi0i4LmohLreZXnjiHIc6fVI4u59pHU6A/\r\nP8nrym0cZ1UN1kfADthVsH6mOqg3EJHtfNrafT01z5jquCE7WZkWZ+fgPBmB\r\nLm2MPHsRXC1i/uEOu+R32+4ROtbOj3niqQabRnbfpY3P55ARl2Bj7Tdjn+3F\r\nSXNXshNCftwmirf0YAkdvOYdOLM2a7Y6/FguHUXulmiWRFJr0F2zggOxcn4B\r\nWM40UB/rH+knLWs17PUdKwHtWbvzMUrmio1p4BxFssZ+RATsz1YneRBVQM5Y\r\nACBzXwIDlqj7aFims+L3wTTatb5KcjGYIOw=\r\n=TvzI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7436a0243b3dbac962e1d118bfe9f4e6d938c150","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"repository":{"url":"git+https://github.com/bluefirex/color-ts.git","type":"git"},"_npmVersion":"6.14.17","description":"A color manipulation library for TypeScript","directories":{},"_nodeVersion":"14.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-ts_1.0.0_1663615576303_0.788424182337736","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@bluefirex/color-ts","version":"1.0.1","keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","_id":"@bluefirex/color-ts@1.0.1","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"homepage":"https://github.com/bluefirex/color-ts#readme","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"dist":{"shasum":"3a7cb0f63f12fcf227a6632657c9d40963610840","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.0.1.tgz","fileCount":6,"integrity":"sha512-nMSKU0hiBe6a4xmvvPxJEdjKfEVXd0IriWlfvqefOUoFcPOO5i7ltJ1TPu2tizR1qHhxdhJtGq0YI+DDlBpeBQ==","signatures":[{"sig":"MEUCID+qGO05hHR329xeTJ5SmlvFkHiS/29DFmongVivvwj9AiEA5Z43eEDGeR5RsKugj2GARXzzxB8+U44kY6dsyCUKfzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK2qHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7SQ/+O1GKiR6LLCQR986GM21bWjjm0U4zbDC4/wg5h5CgsoSRf5GP\r\nSCLHVJKzt7lJHxnc9MoGT+aI7qjlXRmIoUfemWtiUCe7Vw7VRLbwxJtayBlr\r\nB4Wk6og23iCOmWr25ecysmiSw+QO5kO3INY4dtRWkjioQ373pIf3gxoAqbS3\r\nQKyPcj9hsHZQVJv4TBSbnXmw2rART0MIa9BmU1g76ixzhzCLqlWKbb70qCat\r\nU8YoxIssXLzwUcUznUERXFl2oLU45i8t4yQTYTklJFn9K3fy3rShj8UBEWVP\r\nlHpeMnTwjACEKV/1zsH7OeEFTn/TshMZfDqRPWl8FvhZBlTyS4r9xUh/oX/j\r\nsOqXqMj4jE51g6Nt5ycau7G5kAEoqsqhsBu6bV8OpL3Qr3uipzTQ+cf3DMEo\r\nBnrUBDzgCmmLoTuOA+UWytECsM3uCbyt2TOvCbe8Tn17thiyKu4AO4XfPQyj\r\nkSuaDegaBgXkoQGS8QTecLTIPzSQNGaLrlkgAbX9sOX3vmSSlrlg3xKkiyTv\r\nWBC57NMGvuV35A52bVCwK4Qx0oN0+0IKP6A8TgNGY0XxJmlT2P89OZrW9Hyc\r\nuDlh1Jfv6XDk6oMgjmx/blJ26fKM8fJOkk1w/Ps516YJAhvi9xY2PHQOmAET\r\nXcxTShJ9rU4fh69LH1A18ruwiuS5bFA4Tp8=\r\n=3upC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4cea7cef4a0c886046d1b8d2d7d2cf565ccfb773","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"repository":{"url":"git+https://github.com/bluefirex/color-ts.git","type":"git"},"_npmVersion":"6.14.17","description":"A color manipulation library for TypeScript","directories":{},"_nodeVersion":"14.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-ts_1.0.1_1663789703006_0.4511912765160375","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bluefirex/color-ts","version":"1.0.2","keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","_id":"@bluefirex/color-ts@1.0.2","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"homepage":"https://github.com/bluefirex/color-ts#readme","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"dist":{"shasum":"8bdf2c4bd0f602d96b1c8df478433afad92e58e9","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.0.2.tgz","fileCount":6,"integrity":"sha512-l3/I9Yp1cAWDCYdmE3PzQ/PtvQ0kKciOK4/6kZDJoHvtozF+C7ywORHbaQdl9LNUgIOGWKvUToiJEfi3byCq3Q==","signatures":[{"sig":"MEUCIAdAX4M2qpNhNQB0Ns3ztT9hV9ZzZ1WTJpqvFKJ/eZsAAiEA1CLsHHPXdJKIl02Wc9Tboy+7AIbXxez0XAjqt+a0CW0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36714,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNrH3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqXhAAmCNmgJXgH/+v3J0bsUDsDsh0Xdcjf98gX9ffPjNpBSG1q0wY\r\nBjG3oGrIpbN/YBTMoiN+nSkiR1bBZaa9f84aZ7hP0mGff7ZI2eZKAWS9v3Zl\r\n2RpfqePFhNm/lv/022hgQm3p/RskhmvKeG5tz9rfer41yGZ/s+I/LEPywUrj\r\naXbkn6HSAxTEt7l3QIqGQEvX63d1XObxk3KTi/vVfVlAuUY0r/A2hyQAoR+2\r\nwYJj51WSLH8YSVANH/bmFicBiy5qQLaajktKsdwg2fFXC7bnss+DvD2pLWam\r\ntJBu3iNonSOqXHp8v+R8uQcLd8ZF7Hsu0ndom1z8aUrQ9mUk5/WPAA71sCmA\r\nzuTH1BrO7FvcmadvoxeYrAyOd3NXaCDZGwcNNQ7qY/eDGtoXi911dZfj+yt/\r\ncNm8MljPOxzJBYwT7H6rgr8guV1wIod2RP/0vlwcTNKyxsA+CD1J/evnyFFN\r\n2EeYEdkHBOlbOtwjd29fpVrB4qxsZ1QBPif+7Xv23aIoDpW8X4viIsGUA1CO\r\nSAIQv8xx9F0uL2O+TsBVr5KmlcP4/cglzb6a3IEXSwyrfJdt7IRXsJrMCWD8\r\nhYEJMLYJipb1f6ek0Zzs8FWXZNmUtBUSONKJJSqmZIk6vQnA2Cp37owUkrak\r\ncJeQGeaPDO9E6vdKxn54k2VFTB/4Dv1L7DQ=\r\n=ND0Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4552020a66bac1155595b9f8f2621c50cbd21825","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"repository":{"url":"git+https://github.com/bluefirex/color-ts.git","type":"git"},"_npmVersion":"6.14.17","description":"A color manipulation library for TypeScript","directories":{},"_nodeVersion":"14.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-ts_1.0.2_1664528886890_0.968654909905192","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@bluefirex/color-ts","version":"1.1.0","keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","_id":"@bluefirex/color-ts@1.1.0","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"homepage":"https://github.com/bluefirex/color-ts#readme","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"dist":{"shasum":"e69ac4fa3aec324e5b583b6bddfa69ce31321c83","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.1.0.tgz","fileCount":6,"integrity":"sha512-4RPr6kDHFvEe+L1aMA8YTFuAa3qO98S3orl32pgLARGcGmTCS+Sn7WcQmRy3dDo6Qo6x7bntY6cKnOEGk8+U+g==","signatures":[{"sig":"MEUCIApmWyG1wyd1KfSSRBCTFOKyDHSeJGCo7BPK1cuE0lmbAiEA1H+HaZKWwqezAqRC4CEHQv/Y2ZuxIUOa7wgO6VGX9Jo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJXHrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofrA//fkfs/zqHIK9W9Xszd8E75BB0i1dBdjOBfynR3YA3K3FRzEPb\r\nEEbXq6Ed9JfldYG67HlQBMq7sfFyblAN7XBoyHwA2HTEuHiryzn0O3Lh4gY5\r\nVbLwQ13mpX3OmJHDgDsy2F+UzlYn+fi5C9Muor1HovGXTVMLqz9WVBXRWPSO\r\nhE58+DoVZ1yqVJBnRUJE7x+Eu6akQ001Hj8OzBHF/a4l4Iz6SK3DNH98j/wH\r\nKv2vOmqK7SYuPlEgGT9O0lcat6hIVyjMP4fFZSsERVcnk0CJogQQexayeepu\r\ngO+TRemwIigo7zfxloIXzTXVPyYLYZhyEeAP/J4zdxJUJzxQpMvvogmxymv7\r\ndJ/iM91oXFODzWs6cFG1+J+wkISA25ODNmFr0rpgRteq1o6fxkUaGl8d2EJ1\r\n7nQc/0wmXJecI0OQQYLxNapn/rp80bXnL9YM4hsTVqzd3eFtlpMhqDlAxPHL\r\n8c5T0Ycbu/kaVmtNJDfdF8/k23+hoSN3ZL6Twgtc2Rfpz7Ys2M9Ujl0ZJStJ\r\nKnV9bc8Ln8mHqY3thslWsV6phwJ8nCSZzWHnhnu+eIcKOcEoL/jLfcf745ye\r\nHyLjCTH6gH8XF8skxLVwG0CIVjrz8udG1SB++KdsOlcEnvqj61l2v50ME41u\r\nEF7jOjrIE/W6RdSEAXgD0V9s3CW1XmuWdwU=\r\n=ZkBS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f0297911a778d26769494b5b12be6e30f5b17bd3","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"repository":{"url":"git+https://github.com/bluefirex/color-ts.git","type":"git"},"_npmVersion":"8.19.2","description":"A color manipulation library for TypeScript","directories":{},"_nodeVersion":"14.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-ts_1.1.0_1680175594877_0.07179498042595656","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@bluefirex/color-ts","version":"1.2.0","keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","_id":"@bluefirex/color-ts@1.2.0","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"homepage":"https://github.com/bluefirex/color-ts#readme","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"dist":{"shasum":"683a23623747bb28811eff99f3a4002dd2f328a0","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.2.0.tgz","fileCount":6,"integrity":"sha512-uIqDu515h0jDtphN1jZorIHTHCjObxadSFRpuUAdlJWuWTKrTweboGrujODMZpXs4mVCzTtVul0W9S7EqN/FSw==","signatures":[{"sig":"MEQCIBzI/iiIgL2WmyJFPdugAOOt8Gv/bRrcvOpErzRBtxFsAiAcn7AZskgyR3R1IBDqGOjbrql8A+N8g+4FH937aFrQFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRmgzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodcQ/+NGT+CINPRpKbVbay/qXA7inVzHb5ANHFFK9/G7lDcpth6KWP\r\nTpc9Y6tSxOP04xEXZkHHwd6P5331J8iNepKovcaMluhQ3VUrKpNu1J8+bif1\r\n5541oPwGnqibUlPqT1GtE/dV0DO5uO5EiLbxGvwf2cuEj8GlueAQ5TCnXI0u\r\nBUulWsFKl1drfWUHQkWniFC1ThMlAZ12iOI2dmrjJpQKeDcBKzM/89E1eY3p\r\nolvPUr6VFGDyCVanhQSanUcRVqvNJ0iqHcYUIRlQCES2HQzYD2cxs9ufrg8E\r\nozVGmUGYmzyjakvNYF6pbeDdaBm6/hom+cqC3M5RiukSR+vtA/0Z7YOP1UMd\r\nUXFN2eoFCqsDWgJjbYAV9kSmn9Q84BBDo+GWoryzYANjbAV/LzNldFfzC5l+\r\ngZwhiwGbsW5LNowL07Fha2DyT2JyYpcCEBgDeup6AsaSn/RG19ce4fKcnw9I\r\nw4GASIWgGGx3N9AuubDDlzuphU1wEm2o6Z0qRSbu6Yirqd7Dvq+hB9OrCIi7\r\n58jWXlk3kgSG60eezGvDKbFL7XZZTT8MNKCyQCfROkm3KIHJpkfpBmZbAnFx\r\nbnDMCIhTk5Vetlgq9XcgiVKS5iZo1AFJ6XQpfWUO1rRWQv4OJTD8DzfekC68\r\nkglw9wYQpR8al7rwxqB/TpaaUQr/W3ZR+zA=\r\n=KuqI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8598ddb74f2a1a3e211af3d8fbe07183d3e3c73a","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"repository":{"url":"git+https://github.com/bluefirex/color-ts.git","type":"git"},"_npmVersion":"8.19.2","description":"A color manipulation library for TypeScript","directories":{},"_nodeVersion":"14.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-ts_1.2.0_1682335794820_0.2883322396516719","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@bluefirex/color-ts","version":"1.2.1","keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","_id":"@bluefirex/color-ts@1.2.1","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"homepage":"https://github.com/bluefirex/color-ts#readme","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"dist":{"shasum":"d66a5482312faa6df648c14fc46382f3ac28d9dd","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.2.1.tgz","fileCount":6,"integrity":"sha512-HixIrL61imvMa1pWRwLVNUKjfY7/7hmlgXkCMo4dr5PnklQtHu8wxkZTokaW8uZ5txlY35UJWUFsWoUaX9zKfw==","signatures":[{"sig":"MEUCIQDJpjQdsuhI/Q0PhEbJTFRHUwV74Pze6BXApV0vs/8jZQIgJtq7MAxJKkJUm8omFaTl2BKRW4SKrYztI2aFNgQBARo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkS44yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGtQ/+LAG9CbVDZAvtC1CyMzM/Y3bFytQazH2Ltj3dBLDrK2K2pdZ6\r\n8rmmuQShEU2QE3I3onGv4ZLkSv41rfWmCtG3QIzI8NvuIvVMaV1Tglmi8LSQ\r\noCdeWW8TBTmjE5UjElVUKFGJYS0qw8JdcRhCNI5BP3AVbiaWSJFwDhbJFs+5\r\nLTx6LDFpZbbQDa9RUnBun7Juo1gcmOVSUJbRljszus5WZozeAQLjTmRFKalN\r\nBQd+8bDKfY8qvarlLBnMVtyJCZxqJfhlFrUBiHF2UhwMOZ3BPU0txZeVgLkm\r\n43a1JS2O35cP7P3bvjpM93XgrrNUnjUhovx38Wu/pOK1WtMGBv0RUoqY4wde\r\nuiRITTprp/iS2a9beKwdjYTf88AhvvVxqzgMyBMerIOZe6HS63nxmEQzM/IG\r\n78WvoFq1hDuAlKe9rNgDIjq31VXIjmodjEz52V7OIc3sCwcb9m8K5m5nHqbR\r\nIFZZ/gH6uCkjbuSy4vgs3DRdfZ/9rIp8Z7uf6ju3Shv5vusZGFzqhz14VDQZ\r\n8WV13L/6nXdMztWjQ0ZZwHWBUJiJVOsNruoESQ6OT19o/XMMvrxsmGWrO6pC\r\na+1TdTiugrx05FUcHcf4iRRiHn5XsXyouKowgrJlSMbdodzndf+QRq4go5Nc\r\n4hjfTqBD7BXrARGb3pU1bOESKKJJbAzb7T4=\r\n=TaC5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"23e47eb8e1769cbd73c99fc6ca7a2a76eca73496","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"repository":{"url":"git+https://github.com/bluefirex/color-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"A color manipulation library for TypeScript","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-ts_1.2.1_1682673202038_0.6039137232142044","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@bluefirex/color-ts","version":"1.3.0","description":"A color manipulation library for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"vitest","test:coverage":"vitest run --coverage.enabled --coverage.provider=v8 --coverage.all --coverage.include=src --coverage.exclude=src/index.ts"},"repository":{"type":"git","url":"git+https://github.com/bluefirex/color-ts.git"},"keywords":["color","typescript"],"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"homepage":"https://github.com/bluefirex/color-ts#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.1","vite":"^5.4.8","vitest":"^2.1.1"},"_id":"@bluefirex/color-ts@1.3.0","gitHead":"7af7c0c7b1796e4fa5a1ca3867109872f0f2fe71","_nodeVersion":"20.11.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-3kJXHcUlpQP2+B/bR7kvU2k127+WtRDKpHCaDetvl2ZKZzRYdVqWND35VqdV0nWKUH7x+Q8Z0OM07tWlVtGV3g==","shasum":"b92e55d65aceba9e379fc42c6a70d786648ebcc0","tarball":"https://registry.npmjs.org/@bluefirex/color-ts/-/color-ts-1.3.0.tgz","fileCount":6,"unpackedSize":42200,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOsleYe8VXHA1aaqGE7hNqBt5epzUl8EFnwszq6hlPrQIgLyBxBCjxDoWUItXEGcpMkKQMVxYs3T6McjUj5KQfHnI="}]},"_npmUser":{"name":"bluefirex","email":"npm@bfx.re"},"directories":{},"maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-ts_1.3.0_1727861470101_0.8156377040355816"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-19T19:26:16.218Z","modified":"2024-10-02T09:31:10.443Z","1.0.0":"2022-09-19T19:26:16.466Z","1.0.1":"2022-09-21T19:48:23.172Z","1.0.2":"2022-09-30T09:08:07.061Z","1.1.0":"2023-03-30T11:26:35.057Z","1.2.0":"2023-04-24T11:29:54.970Z","1.2.1":"2023-04-28T09:13:22.247Z","1.3.0":"2024-10-02T09:31:10.294Z"},"bugs":{"url":"https://github.com/bluefirex/color-ts/issues"},"author":{"name":"bluefirex","email":"github@bfx.re"},"license":"MIT","homepage":"https://github.com/bluefirex/color-ts#readme","keywords":["color","typescript"],"repository":{"type":"git","url":"git+https://github.com/bluefirex/color-ts.git"},"description":"A color manipulation library for TypeScript","maintainers":[{"name":"bluefirex","email":"npm@bfx.re"}],"readme":"# color.ts\n\nA tiny color manipulation library for TypeScript.\n\n## Goals\n\n- Provide a small fully typed library for manipulating colors in hex, rgb(a) and hsl(a).\n- Provide an object-oriented interface with SCSS-like syntax.\n- Handle conversions between formats automatically.\n\n## Installation\n\n1. Install:\n\n```bash\nnpm i @bluefirex/color-ts\n```\n\n2. Use:\n\n```ts\nimport { Color } from '@bluefirex/color-ts'\n\nconst color = Color.fromString('#17a')\n                   .withAlpha(0.67)\n                   .darken(16)\n                   .saturate(8)\n\nconsole.log(color.cssHSLA, color.cssRGBA, color.cssHex)\n```\n\n## Usage\n\n### Number ranges\n\n- For RGB, numbers range from 0-255\n- For HSL, numbers range from 0-1\n- For YUV:\n  - Y: from 16-235\n  - U: from 16-240\n  - V: from 16-240\n\n### Create for different formats\n\n```ts\n// Hex\nColor.fromHex('#17a')\nColor.fromHex('#123456')\nColor.fromHex('999')\n\n// RGB with alpha of 0.5\nColor.fromRGB({\n\tr: 0,\n\tg: 125,\n\tb: 255\n}, 0.5)\n\n// HSL with alpha of 0.42\nColor.fromHSL({\n    h: 0.5,\n    s: 1.0,\n    l: 1.0\n}, 0.42)\n\n// From CSS-like strings\nColor.fromString('#DEADBEF')\nColor.fromString('rgba(128, 0, 32, 0.2)')\nColor.fromString('hsl(42, 13%, 37%)')\n```\n\n### Lightness / Darkness\n\n```ts\nconst color = Color.fromString('#17a')\n\n// Lighten/darken like in SCSS (percentage from 0-100)\nlet darkened = color.darken(24),\n    lightened = color.lighten(24)\n\n// Check if color is considered to be a dark color\nlet isDark = color.isDark()\n\n// Specific lightness\nlet withLightness = color.withLightness(0.1337)\n\n// Get the brightness as perceived by a human, 0-255\nlet perceived = color.perceivedBrightness\n```\n\n### Hue\n\n```ts\nconst color = Color.fromString('#17a')\n\n// Check if color is red or green (signal colors)\nlet isRed = color.isRedish(),\n    isGreen = color.isGreenish()\n\n// Shift hue\nlet shifted = color.shiftHue(0.125)\n\n// Specific hue\nlet withHue = color.withHue(0.5)\n```\n\n### Saturation\n\n```ts\nconst color = Color.fromString('#17a')\n\n// Saturate/desaturate like in SCSS (percentage from 0-100)\nlet saturated = color.saturate(24),\n    desaturated = color.desaturate(24)\n\n// Specific saturation\nlet withSaturation = color.withSaturation(0.2)\n```\n\n### Alpha\n\n```ts\nconst color = Color.fromString('#17a')\n\n// Specific alpha\nlet withAlpha = color.withAlpha(0.42)\n```\n\n### Contrast\n\nThis uses the WCAG standard for contrast calculation. If the contrast value exceeds `4.5` it is considered readable.\n\n```ts\nconst foreground = Color.fromString('#17a'),\n    background = Color.fromString('#ffff00')\n\n// Option A:\nconst resultA = foreground.contrastTo(background)\n\n// Option B:\nconst resultB = Color.contrast(foreground, background)\n```\n\n### Convert into different formats\n\n```ts\nconst color = Color.fromString('#17a')\n\n// Hex without #\nconst hexClean = color.hex\n\n// Hex for use with CSS (includes #)\nconst hex = color.cssHex\n\n// RGB(A) for use with CSS\nconst rgba = color.cssRGBA\n\n// RGB as an object or array\nconst rgbArray = color.rgbArray,\n    rgbString = color.rgbString,\n    rgb = color.rgb\n\n// HSL(A) for use with CSS\nconst hsla = color.cssHSLA\n\n// HSL as an object or array\nconst hslArray = color.hslArray,\n\thsl = color.hsl\n\n// YUV for approximating human-like color perception\nconst yuv = color.yuv\n\n// To and from JSON\nconst json = color.toJSON(),\n    restored = Color.fromJSON(json)\n```\n\n### Other helpful functions\n\n#### Mix two colors\n\n```ts\nconst colorA = Color.fromString('#17a'),\n    colorB = Color.fromString('#ff0020')\n\n// Option A:\nconst mixedA = colorA.mixWith(colorB, 25)\n\n// Option B:\nconst mixedB = Color.mix(colorA, colorB, 25)\n```\n\n#### Check if two colors are similar\n\n```ts\nconst colorA = Color.fromString('#272727'),\n\tcolorB = Color.fromString('#282828')\n\nconsole.log(colorA.isSimilarTo(colorB, 0.95)) // true\n```\n\n#### Compare lightness of two colors\n\n```ts\nconst colorA = Color.fromString('#272727'),\n\tcolorB = Color.fromString('#282828')\n\nconsole.log(colorA.isLighterThan(colorB)) // false\nconsole.log(colorA.isDarkerThan(colorB)) // true\n```\n\n## Development\n\n1. Clone repo: `git clone git@github.com:bluefirex/color-ts`\n2. Install dependencies (only vitest and vite): `npm i`\n3. Make your changes.\n4. Run tests: `npm run test`\n5. Run build: `npm run build` (do not commit build files unless they are to be released)\n","readmeFilename":"README.md"}