{"_id":"sharp-ico","_rev":"5-93e4400d002f4bf7369948c68c6c3639","name":"sharp-ico","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"sharp-ico","version":"0.1.0","description":"ICO encoder and decoder for sharp base on ico-endec.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./index.d.ts","main":"./index.js","keywords":["sharp","ico","image","convert"],"author":{"name":"ssnangua"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"devDependencies":{"@types/sharp":"^0.30.4"},"dependencies":{"sharp":"*","ico-endec":"*","sharp-bmp":"^0.1.5"},"gitHead":"a9eb2eb549a39a50309ddd963e657098417b8b06","bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"homepage":"https://github.com/ssnangua/sharp-ico#readme","_id":"sharp-ico@0.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-vAAqFcbkYoH8ox2CGS26x2mBvF1dgyXCfXpHE2pbBy4/ilx4EZnHTJHQ2JbL6igfrfWDJtznn9bGFt3OwFigYA==","shasum":"3848cab97ab4bd5a34df4c36d9ae7672d9b207e3","tarball":"https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.0.tgz","fileCount":5,"unpackedSize":8286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDiNVYMsT9xorV9rrF5J9Dd+SDTVnjzHLZd6ytWCoKe5AiBCDArSmOBiRZ1ginUK7hJCLpBX32gv1mqQpNnRbiBxlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7AfCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokLw/+Mv7EkypwMllYVpK748kB1ii2hFxVd0Hui1lN7Sy1bI0ROfbK\r\nrObZfkNriSN39UrpRgPiR7X81kEextvIRd61iPpU66WNZN8khE5VlzSNYziO\r\na0glE9bQgIUf9mRfD7mFPkgYdoK3ds3NqFkW81rJdxgtHIBrbJNNG/NcSMlK\r\nzUPcMvOIbTNtGkSAhsAmIzeLkrUNYg7+Orl3wzCEmd6NWGe0RpiEDM4POH6r\r\nqmFcQCjeJwu8nJTG5hQbbxWoOE+uSp8DOC+ObXCJFjVtRooXoUDXTxEXV8c4\r\n97+X1Xj+G5en/dU4S2ImmV1/E02GZTkIY+9rkUpX3gDJ7ylYFjPUnVrzUdZe\r\nzTUc8EHFfwGdkycx4OwFuE30Z/TtwMjiBLAM2nhWSLJ7Nv3jWjx4N0O5wjGH\r\n+TuJG5p7XSyNuGuAHGvOoWB/HxyY9nrNKwGrG7m7ISH3WPDDApoK6BbFTsrr\r\n0gLyWj8XeSVhMuI7iGUwPUz+tqBd4s0Q0QHCS/0/BRGDHXUlOWGdcn99DTIk\r\nrNEKdVODrVe9gs/+kHgyHbwhtiFC81EmWsixYw4XMm/EfnJTD0whmtspPO/H\r\nTSLpk6yUlpLyzCalGnoyjEKKv+ljx1REI8DZyzldZsojO+vGHKigHb7m+Ebz\r\nZSQOra9ZhwqGlSBqM4U9gMHd6bL0Dxmq14Q=\r\n=oizb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ssnangua","email":"kainanhong@gmail.com"},"directories":{},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp-ico_0.1.0_1659635650075_0.22661112695147434"},"_hasShrinkwrap":false},"0.1.1":{"name":"sharp-ico","version":"0.1.1","description":"ICO encoder and decoder for sharp base on ico-endec.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./index.d.ts","main":"./index.js","keywords":["sharp","ico","image","convert"],"author":{"name":"ssnangua"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"devDependencies":{"@types/sharp":"^0.30.4"},"dependencies":{"sharp":"*","ico-endec":"*","sharp-bmp":"^0.1.5"},"gitHead":"c3d9ff00559ae45e9cee85c5355dc0ceb72a81d2","bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"homepage":"https://github.com/ssnangua/sharp-ico#readme","_id":"sharp-ico@0.1.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-Wjyl28S+Myq8E171DsTEb2nGBGzC8gZjEYo5W9Fnzosie//gysbZxqXlmIa0AYojFXwrtJulepUXgxM+UNEOiA==","shasum":"83c66f3316d878ecfbe9a6797687234c83b56306","tarball":"https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.1.tgz","fileCount":5,"unpackedSize":11789,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrJYYSSglx74W9sJtP/XBw1UdEdHu82VGJZ1uOMIaoTgIgPi8u1B5H2ewkka+kr2Qpx9xXFrml1R/Ae2laOxY4+Rk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7KnBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZIw//U2v21cFwyBtFWJYLDCugNmFnk47phQD/fP4p7gVut10ejS3m\r\n6fWkBgScl8wDulRgE+hwFcsmnY/kB+9J67iruYOf7NOufliwnEbd7ZqEo9po\r\njYiilzllb7/0DArk2Nrq/GUXXjv2Ws7OXtcUJ9cKBeaLXZhzqPqp0a8TmuJo\r\nLjrI37D5TpPQubo1unVXluy0QfyCSkPkWosbjREPTNCiL2Mwbb0+h03PgegF\r\n6HGdfa+a4VghQI2nr77zv89qZ9X4Fmatw4ck1XDAEjRGnKvmrX51viAjNiZl\r\nIQ+/rvjEr3jFUaGVbki8/k92c6rkR0hp0ugVTnUxVsCDb3CJgLca5ntr3kzv\r\nP0aopn2/vzRcIPj2Uir2osg4ioDJIsG7Gx+CsMcFuzJM7E1Iz02lFFC9CrEU\r\nyrEjQ5Xz9pdBHthReOHB1TW01JvnyQ+YGuzAXlKOQaMCeiscBP2HEgzGd6YP\r\nCtVewRlD6s5Yghv+1fysB3mb5wVXdYXuElkQUx5oE2mDWUVBKn/Mq/rBWH8i\r\ngT1M/aqZcs5HTlpEffWZznvSWcpiFsFLW7cc5FPWroZVfkBNEKiaLe/0ctKQ\r\nK5qVp5yP7eqJY3d0Qkyb18t6o0zAz/d5/zqsDJb2c5is5jroQIn4NLy8dT8G\r\nANNwG9fJw7m2OxkmfXvylK/jhWhz4UebzQo=\r\n=LrYy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ssnangua","email":"kainanhong@gmail.com"},"directories":{},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp-ico_0.1.1_1659677121727_0.9569411847419367"},"_hasShrinkwrap":false},"0.1.2":{"name":"sharp-ico","version":"0.1.2","description":"ICO encoder and decoder for sharp base on ico-endec.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./index.d.ts","main":"./index.js","keywords":["sharp","ico","image","convert"],"author":{"name":"ssnangua"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"devDependencies":{"@types/sharp":"^0.30.4"},"dependencies":{"sharp":"*","ico-endec":"*","sharp-bmp":"^0.1.5"},"gitHead":"70de3cee612f810461e1253314a8af3c33a216fe","bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"homepage":"https://github.com/ssnangua/sharp-ico#readme","_id":"sharp-ico@0.1.2","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-IIPDFjoa5r3h/KKIC4enu27ABLLyPhgXd8O413F5RCXNXjWVap1knrSD6zvZpvRytZYGEruQKYwuDHCbA/kKFg==","shasum":"24a9fce0a3bbe0021e46536f6f52e4ccbdd5591c","tarball":"https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.2.tgz","fileCount":5,"unpackedSize":11822,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXDFhaCa6eAngyNnelym93szoMsp91bADNmlp0r1BTpQIgW3xcr18L3gbWRkpig8ir24TWVLphONQKWYxwiM/pOoA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7K/qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyQg/9HO5EGgpFqC83zbUjUShKz75Hk2yWaLCP6OBrRzfBDoRuNAgE\r\npZtqf1q9GoorKhb/EWa6xMXb4Zcd6Ul/XW1Mwtr0SobFKVe8xpcPO+f01JEi\r\nn3fH3HXlLNG5KGzSYaq3LWOxjR6QwKAfmTzXLkCgpqA6TBvxtm404ZEdHIue\r\ntjgPWsoYnDsCOvJNIVuDrxE+urK/VQUcgyiPytuK367O4W6U+D0ckV4Lqp4O\r\nedE3aI1RlWVUs+Zlcdt2Ui5wClHqUs9obo5p4SySGkWM6hu3vM62XfWZ+O6q\r\nVCaoUXFVsymnlwCSboi8HlgCOwMEgMf2oTsKCWRzdOjhQdXfDe58nsWnOMvk\r\n282KQQxoi33aNtRvH76+xJp+KXnbx5lxtuKpVhWle52h3IScMB+Xm3HGbtqT\r\neHJWmdfwYSuiiBV/UJ/vDxKMOI/SzlPR6owP+Hay21geqAMtEvuTBG8nZL9L\r\nAjusIFfCgrJTN+0OhTED4WL2sDPP9lCudLOQAUL0IMFQhhPAHF8Dnb8uEfC3\r\nxCwkFI+C6koYmAGZ8ETST8J5D/ZqVF5fk61Plq+h+h6fmorqYC4gLigRfjCe\r\nmPcfVolS3rZNTXw8xx8tPVrTYCtBqsS3hCyP2c1B5M3h70Iv1Qfl11Ks8D4T\r\nJpQJRlLfHjK46+ZSW3tsN3hEE83rMt152yg=\r\n=OnWD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ssnangua","email":"kainanhong@gmail.com"},"directories":{},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp-ico_0.1.2_1659678698435_0.19678001328781858"},"_hasShrinkwrap":false},"0.1.3":{"name":"sharp-ico","version":"0.1.3","description":"ICO encoder and decoder for sharp base on ico-endec.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./index.d.ts","main":"./index.js","keywords":["sharp","ico","image","convert"],"author":{"name":"ssnangua"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"devDependencies":{"@types/sharp":"^0.30.4"},"dependencies":{"sharp":"*","ico-endec":"*","sharp-bmp":"^0.1.5"},"gitHead":"056eb0b1340a5f730ab941617d8425333ba36229","bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"homepage":"https://github.com/ssnangua/sharp-ico#readme","_id":"sharp-ico@0.1.3","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-w/IukmnEU5nIumntOgIv9/I1nlaXUQxcGlkjJ5zZ54KwHSrdwPfG974hv9yd/1Yp4nUEiEHxc5vmdNEpXFyC8w==","shasum":"8e4f6a159ec2aff1e050d28315588a043fb66693","tarball":"https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.3.tgz","fileCount":5,"unpackedSize":11771,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKfLzwbkbsPGVQ5YqWueIw2A3BBMegnOEe7SjZIgbYFwIgFBkNHr5o4xEfwqhXwxiRuduE3Z+oWtyuT/LvxGKK1qg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7L7bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi5Q//aJrhX3rfJXZP+nmBzWRkL6ANTsBpb0iK2eg1ZDXQlwyDRtDZ\r\nXq5e9GwvtNap+JfgGx3isnD6ovIhh6mNxRxI+9E9eGuVOf90ca0NgFW1uG/c\r\nlq/FUx5ngv8g0VGhdxYe59pY+FAzOhhAsFu7pwq79RVssw8dqwkO3aZVwn+9\r\ng6D0jXNLhQdPz0AdnSYg/ByZKczmvRxA1ViCmUGpkL4tZZtt6jYW/WoowK5X\r\nCQmeVfvv5Hd8YkOcygWN38m5/kkYzf0e90hWB0wdUkLx5hoap14Kg5SF0Nm/\r\nfhjabH5fAmey00uOFEwv4VAdQw8aWrdQt71mc6mHVatyNHMmPXCzcIKh0Jc7\r\nJlwDyv3dVD1u9+zL9zWnuDoF2f8PiiT6TaHMFQ8z2avjz0M2ryOu3HHPbhUJ\r\n/2Y0E5ltrXviYyi50xqMJTf0Gfy2a4QWq+WwAvTO7KjUyEWzULiAd7Qxk88l\r\n+73iM+ERhipQcLP61yobU0WgKguuMr5ZmEDWh6srhPRbLR6lq+7OYJp5JOjj\r\nzePN/xrMPoOijzPpPRa2H+h4fKH8Xz+nIayTlxnGfr+QZg6YPdryll7+Y1O9\r\nCeRstubRBszFVfDkZFIEYJudk5yR5rhF8ETG8KRY2l18PQg2/MurqHFwOOhh\r\nNzBtU92sXYFOPrbHZO+0EGneR/8ukS6Urv0=\r\n=5EYd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ssnangua","email":"kainanhong@gmail.com"},"directories":{},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp-ico_0.1.3_1659682523413_0.15355298789794225"},"_hasShrinkwrap":false},"0.1.4":{"name":"sharp-ico","version":"0.1.4","description":"ICO encoder and decoder for sharp base on ico-endec.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./index.d.ts","main":"./index.js","keywords":["sharp","ico","image","convert"],"author":{"name":"ssnangua"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"devDependencies":{"@types/sharp":"^0.30.4"},"dependencies":{"sharp":"*","ico-endec":"*","sharp-bmp":"^0.1.5"},"gitHead":"0f785cfd49d096cd31bc1da5d16339625d4f69bb","bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"homepage":"https://github.com/ssnangua/sharp-ico#readme","_id":"sharp-ico@0.1.4","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-qo+yq6ZgOorCr09ZSKmCWk1TNvS23xHm+5JpKNgwyoMgCP0QuVrm9dsvYg/+s6+8I5SDfn1NgNYc+5tpxfntmQ==","shasum":"8bb99f00df11ee99fc053493648c21ade416ab7d","tarball":"https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.4.tgz","fileCount":5,"unpackedSize":11881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0c6qOHr+tfGdCoAoEz59RF+NAp/wOTXeIsQvtKjOblgIgIFZ2Xn5SNx20DRpVrW+PVA+rzgcRWSpsu92pNAkEoCs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7fqDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGYw/9FCA/9FZrV2sm4UMzzhIGqk2A8OIiEYx9JIEGZH15AuGxN756\r\nTAR2LRVoesZd7k1z7PsZhCW5RgKqeSrCPSQrIJ2ZXcWQ0fVvToYhoMSqhW/x\r\n+lCqQvQFUx1lFf3YRfTYk0fQwcm21viJ2QWPRKHFOAkz2WD7FZpt0UhouYKh\r\nEq5RM4q27XkVL250huagYgpIyxf3JLvAOJEf/SSimeWpDobRDM3gRx3ebZIm\r\n3g8Yw7Ox0ZyWpx9iZFa/0I0sPIY9dbI4wOpho9Wura3VeG7oLCgMKfGswrQp\r\nOqN1dC8GKUj4zqaRrNx8xhbcQDRcLdxmSkmvZN/XbNSsYcDleyLEZU5Ht132\r\nZ41hoGIG8/2KbAp77+XIgRkxpZc1mo0Orn98y9vevA9eIzye0xnJRRXrGbhC\r\nzfmF7VNXVRmrw9ev2F9OpVGOLUDK1eozf00ZrpQeAqSUNRhAh/s7fdsKLWAg\r\nShyqUfKOTNnWj1Sk+Heljyyz0in7wqLBAPpRsUoDDmdDZCzqBN+31jtXgGoy\r\nktCip9xi2cyWB9fCz7Wn8lIstEGH/HnGh8KtXHdpTYm/8cVrJkqquIPzPR6w\r\n2uGERk4Vn52EWxKVZlvOgksqwgDFehs9rFNbV7y203MgsUo6KzZ5QXA8zPZ2\r\n6e+i7VN+1oFHKriHFhpx5SX76eWupyf8pFo=\r\n=B/Ka\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ssnangua","email":"kainanhong@gmail.com"},"directories":{},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp-ico_0.1.4_1659763331680_0.6982943222408267"},"_hasShrinkwrap":false},"0.1.5":{"name":"sharp-ico","version":"0.1.5","description":"ICO encoder and decoder for sharp base on ico-endec.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./index.d.ts","main":"./index.js","keywords":["sharp","ico","image","convert"],"author":{"name":"ssnangua"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"devDependencies":{"@types/sharp":"^0.30.4"},"dependencies":{"decode-ico":"*","ico-endec":"*","sharp":"*"},"gitHead":"1a80f4fa221e2c3c817c4710359461416d10ae4b","bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"homepage":"https://github.com/ssnangua/sharp-ico#readme","_id":"sharp-ico@0.1.5","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-a3jODQl82NPp1d5OYb0wY+oFaPk7AvyxipIowCHk7pBsZCWgbe0yAkU2OOXdoH0ENyANhyOQbs9xkAiRHcF02Q==","shasum":"5d263558adfb00903313db9403e20dc66ffcfa5b","tarball":"https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.5.tgz","fileCount":5,"unpackedSize":11497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8Cc8LRs0xJ0/el2aOyy9LMePt5GHoNFpM2rmlGLiEYQIgLkjh91uGhNOl5RCrlGO4qQv6qpMHLkVTyobpbYO9crU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDc+1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRqQ/8Caz43gEOSm+yMAxahVeNMLiVCaMU1OG269+lXG8UAaf+PRS2\r\nvl6BD3gfnDbUdBtz37PPdcYaGuRB7Atx/wcagbt1jfIfM5QtDzjUnfxxXtE1\r\ngdXs3JB/Paver8LDx7zujibCna28ZrfmOyguJtlkXN75lX/S6mx2TzJXcqOW\r\nLJ6d0xLT4lI8cL2aCoCvwPlY4bN+BM67ZDf6OtFNI8OGtE8oICYmQvSkACrM\r\n63ba0qCdfW36iShA0gk5yqDhW5noEQC5clH04Mtu7NSfQ6cgsovxBwSCetcQ\r\nXdZfc535uvimDn6xyIfLtZYcfWufTtyCCRDOVNLLBcLbFk+u6cDVLlDtiBHA\r\n51ha9pENwSAiCNFh9oG7zgUYzhuM6aLezXdEW8UInNWw7kKB0vaJ8SduCSEr\r\n3bKdKJS+1cbPkMLYOrjHUnCpuAE/JCQGlexxMp7irCU6rFiLX2Laz3moZx3+\r\n1hWIb8Wvl1r2iiCxk8BiUM8g0w8nnbXDJBl2h9YM2Yv4fZtDU+yqmo9X5pu1\r\nd0hPL1EIkA+fscFKP+df1bXVU2vcu3bi9CnI73OenW/lExSdghK0hHMFcndD\r\nQsI0hrR4F5s/wChmj3j0eEEaGrIfQ0mGli4lj3SDQmJz1021CWe0KZLM9r8Y\r\n+my6DBXsrPXWE2Vi9x3y6FTWnw+1kXfpCTc=\r\n=Cb19\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ssnangua","email":"kainanhong@gmail.com"},"directories":{},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp-ico_0.1.5_1661849524949_0.36308476395881306"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-04T17:54:09.998Z","0.1.0":"2022-08-04T17:54:10.248Z","modified":"2022-08-30T08:52:05.260Z","0.1.1":"2022-08-05T05:25:21.917Z","0.1.2":"2022-08-05T05:51:38.664Z","0.1.3":"2022-08-05T06:55:23.572Z","0.1.4":"2022-08-06T05:22:11.876Z","0.1.5":"2022-08-30T08:52:05.156Z"},"maintainers":[{"name":"ssnangua","email":"kainanhong@gmail.com"}],"description":"ICO encoder and decoder for sharp base on ico-endec.","homepage":"https://github.com/ssnangua/sharp-ico#readme","keywords":["sharp","ico","image","convert"],"repository":{"type":"git","url":"git+https://github.com/ssnangua/sharp-ico.git"},"author":{"name":"ssnangua"},"bugs":{"url":"https://github.com/ssnangua/sharp-ico/issues"},"license":"MIT","readme":"# sharp-ico\n\nICO encoder and decoder for [sharp](https://www.npmjs.com/package/sharp) base on [ico-endec](https://www.npmjs.com/package/ico-endec) (for encode) and [decode-ico](https://www.npmjs.com/package/decode-ico) (for decode).\n\n## Install\n\n```bash\nnpm install sharp-ico\n```\n\n## Usage\n\n### Create instances of sharp from an ICO image\n\n#### `ico.sharpsFromIco(input, options?, resolveWithObject?)`\n\n- `input` (string | Buffer) - A String containing the filesystem path to an ICO image file, or a Buffer containing ICO image data.\n- `options` Object (optional) - sharp constructor [options](https://sharp.pixelplumbing.com/api-constructor#parameters).\n- `resolveWithObject` boolean (optional) - Return an array of Object containing `image` (instance of sharp) property and [decoding info](#decodinginfo) instead of only instance of sharp. Default by `false`.\n\nReturns `Sharp[] | ImageData[]` - Return an array of instance of sharp or Object containing `image` (instance of sharp) property and [decoding info](#decodinginfo).\n\n```js\nconst ico = require(\"sharp-ico\");\n\nico\n  .sharpsFromIco(\"input.ico\", {\n    // sharp constructor options\n  }) // returns an array of instance of sharp\n  .forEach(async (icon, index) => {\n    icon.toFile(`output-${index}.png`);\n\n    // Or\n    const metadata = await icon.metadata();\n    icon.toFile(`output-${metadata.width}x${metadata.height}.png`);\n  });\n\n// Set the third option to `true`, will return objects with decoding info\nico\n  .sharpsFromIco(\"input.ico\", null, true)\n  .forEach((icon) => {\n    icon.image.toFile(`output-${icon.width}x${icon.height}.png`);\n  });\n```\n\n### Write an ICO file\n\n#### `ico.sharpsToIco(icons, fileOut, options?)`\n\n- `icons` Sharp[] - An array of instance of sharp.\n- `fileOut` string - The path to write the image data to.\n- `options` Object (optional)\n  - `sizes` (number[] | `\"default\"`) - Array of sizes to use when resizing. `\"default\"` equal to `[256, 128, 64, 48, 32, 24, 16]`.\n  - `resizeOptions` Object (optional) - sharp resize [options](https://sharp.pixelplumbing.com/api-resize#parameters).\n\nReturns `Promise<Object>` - Resolve with an Object containing `size`, `width`, `height` properties.\n\n```js\nconst sharp = require(\"sharp\");\nconst ico= require(\"sharp-ico\");\nconst bmp = require(\"sharp-bmp\"); // if need to write bmp icons\n\nico\n  .sharpsToIco(\n    [\n      sharp(\"input-256x256.png\"),\n      bmp.sharpFromBmp(\"input-64x64.bmp\"),\n      sharp(\"input-32x32.png\"),\n      // more sizes...\n    ],\n    \"output.ico\"\n  )\n  .then((info) => {\n    console.log(info); // { size, width, height }\n  })\n  .catch((err) => {\n    console.error(err);\n  });\n\n// sizes options\nico\n  .sharpsToIco(\n    [\n      sharp(\"input-256x256.png\")\n    ],\n    \"output.ico\",\n    {\n      sizes: [64, 32, 24],\n      // sizes: \"default\", // equal to [256, 128, 64, 48, 32, 24, 16]\n      resizeOptions: {}, // sharp resize optinos\n    }\n  ); // will output a 64x64 ico image (with 32x32 and 24x24 sizes)\n```\n\n### Decode ICO\n\n#### `ico.decode(buffer)`\n\n- `buffer` Buffer - A Buffer containing ICO image data.\n\nReturns `Object[]` - Return an array of Object contains the following <span id=\"decodinginfo\">decoding info</span>:\n\n- `width` number - The width of the image, in pixels.\n- `height` number - The height of the image, in pixels.\n- `type` string - The type of image, will be one of `bmp` or `png`.\n- `data` Uint8Array - The data of the image, format depends on type, see below.\n- `bpp` number - The color depth of the image as the number of bits used per pixel.\n- `hotspot` null | { x: number, y: number } - If the image is a cursor (.cur), this is the hotspot.\n\nThe format of the `data` parameter depends on the `type` of image. When the image is of type `bmp`, the data array will hold raw pixel data in the RGBA order, with integer values between 0 and 255 (included). When the type is `png`, the array will be png data.\n\n```js\nconst fs = require(\"fs\");\nconst sharp = require(\"sharp\");\nconst ico = require(\"sharp-ico\");\n\nconst buffer = fs.readFileSync(\"input.ico\");\nconst icons = ico.decode(buffer);\n\nicons.forEach((icon) => {\n  const image = icon.type === \"png\"\n    ? sharp(icon.data)\n    : sharp(icon.data, {\n        raw: {\n          width: icon.width,\n          height: icon.height,\n          channels: 4,\n        },\n      });\n  image.toFile(`output-${icon.width}x${icon.height}.png`);\n});\n```\n\n### Encode ICO\n\n#### `ico.encode(bufferList)`\n\n- `bufferList` Buffer[] - An array of Buffer containing PNG or BMP image data.\n\nReturns `Buffer` - Return a buffer containing ICO image data.\n\n```js\nconst fs = require(\"fs\");\nconst sharp = require(\"sharp\");\nconst ico = require(\"sharp-ico\");\nconst bmp = require(\"sharp-bmp\"); // if need to write bmp icons\n\n(async () => {\n  const icons = [\n    sharp(\"input-256x256.png\"),\n    bmp.sharpFromBmp(\"input-64x64.bmp\"),\n    sharp(\"input-32x32.png\"),\n  ];\n  const bufferList = [];\n  for (let i = 0; i < icons.length; i++) {\n    const buffer = await icons[i].toFormat(\"png\").toBuffer();\n    bufferList.push(buffer);\n  }\n  const icoBuffer = ico.encode(bufferList);\n  fs.writeFileSync(\"output.ico\", icoBuffer);\n\n  console.log(icoBuffer.length); // size of output.ico\n})();\n```\n\n## Change Log\n\n### 0.1.1\n\n- `sharpsToIco` support `sizes` option\n\n### 0.1.5\n\n- Use [decode-ico](https://www.npmjs.com/package/decode-ico) instead of [ico-endec](https://www.npmjs.com/package/ico-endec) for decoding to support transparent bmp icons.\n\n\n","readmeFilename":"README.md"}