{"_id":"to-ico","_rev":"1134861","name":"to-ico","description":"Convert PNG to ICO in memory","dist-tags":{"latest":"1.1.5"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"time":{"modified":"2024-10-05T06:41:07.000Z","created":"2016-04-18T07:55:00.975Z","1.1.5":"2017-08-15T15:58:05.553Z","1.1.4":"2017-05-23T19:23:42.157Z","1.1.3":"2016-10-31T09:03:34.803Z","1.1.2":"2016-09-19T20:02:15.478Z","1.1.1":"2016-09-19T17:30:44.854Z","1.1.0":"2016-09-14T18:54:02.174Z","1.0.1":"2016-04-18T08:00:03.142Z","1.0.0":"2016-04-18T07:55:00.975Z"},"users":{"jpdevries":true,"eerne":true,"mojaray2k":true},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"versions":{"1.1.5":{"name":"to-ico","version":"1.1.5","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"arrify":"^1.0.1","buffer-alloc":"^1.1.0","image-size":"^0.5.0","parse-png":"^1.0.0","resize-img":"^1.1.0"},"devDependencies":{"ava":"*","file-type":"^4.3.0","icojs":"^0.7.2","pify":"^2.3.0","xo":"*"},"gitHead":"f11c67edeec77d8722e3a2d0511c7684fcb208b8","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.1.5","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"integrity":"sha512-5kIh7m7bkIlqIESEZkL8gAMMzucXKfPe3hX2FoDY5HEAfD9OJU+Qh9b6Enp74w0qRcxVT5ejss66PHKqc3AVkg==","shasum":"1d32da5f2c90922edee6b686d610c54527b5a8d5","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI5EDZFBnLZrBFLEMXt9eeKXMlAmnINvN99biPSIwhSgIgF5y+dhjGoy/bKy954253ieVJIMQesMO+DjY6H1L6Rb8="}],"size":3054,"noattachment":false,"key":"/to-ico/-/to-ico-1.1.5.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-ico-1.1.5.tgz_1502812684698_0.8286467615980655"},"directories":{},"publish_time":1502812685553,"_cnpm_publish_time":1502812685553},"1.1.4":{"name":"to-ico","version":"1.1.4","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"arrify":"^1.0.1","buffer-alloc":"^1.1.0","image-size":"^0.5.0","parse-png":"^1.0.0","resize-img":"^1.1.0"},"devDependencies":{"ava":"*","file-type":"^4.3.0","icojs":"^0.7.2","pify":"^2.3.0","xo":"*"},"gitHead":"7d549ca889b6c90d6979c5bdb32d8605dadc33ee","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.1.4","_shasum":"b4c7b4afd2aa9fe65356c38c4bcb62e077de1ca7","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.8.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"b4c7b4afd2aa9fe65356c38c4bcb62e077de1ca7","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.1.4.tgz","integrity":"sha512-n7EVeNACwh8ipgOzpHl8EAegzO98CYABPWwZ5pM8yERICZDlvwh9k7ZfwOB1zF/m8jkWYsY4S7I53fZNJ946DQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1e466Sme8IyZ21zYF+Al/nQA9qCfwAMiXo8LdzjUw7AiAjo/W7jwr7VxV67Pkv8YmbQJTU8O+EMV55sUNM6/4bMw=="}],"size":3095,"noattachment":false,"key":"/to-ico/-/to-ico-1.1.4.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-ico-1.1.4.tgz_1495567421158_0.5527724155690521"},"directories":{},"publish_time":1495567422157,"_cnpm_publish_time":1495567422157},"1.1.3":{"name":"to-ico","version":"1.1.3","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"arrify":"^1.0.1","icojs":"^0.4.1","image-size":"^0.5.0","parse-png":"^1.0.0","resize-img":"^1.1.0"},"devDependencies":{"ava":"*","file-type":"^3.8.0","pify":"^2.3.0","xo":"*"},"xo":{"esnext":true},"gitHead":"389873a749b7afc41748c9d8ed0bcdfa17b7e632","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.1.3","_shasum":"59f1774042f6732f690d79744ade985b7998db77","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.9.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"59f1774042f6732f690d79744ade985b7998db77","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.1.3.tgz","integrity":"sha512-/8jkStzLiXXAcZL4Sy1ZDhhH3vA8wfmCBjD/CI/1QkIr0SqHadf4b+UHEoPG3VZunDi5bG1NEOxBVA7rE6ne/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5CtN42R7ofq4V6Vhb5Yh1kPwfgRBweLAN+/fIVIShuQIgGkbGyVRlwc5fDNMYAVe6uNzwEPXeXr7Y7ErjwOglcFU="}],"size":2734,"noattachment":false,"key":"/to-ico/-/to-ico-1.1.3.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-ico-1.1.3.tgz_1477904613065_0.4697271154727787"},"directories":{},"publish_time":1477904614803,"_cnpm_publish_time":1477904614803},"1.1.2":{"name":"to-ico","version":"1.1.2","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"arrify":"^1.0.1","image-size":"^0.5.0","parse-png":"^1.0.0","resize-img":"^1.1.0"},"devDependencies":{"ava":"*","file-type":"^3.8.0","pify":"^2.3.0","xo":"*"},"xo":{"esnext":true},"gitHead":"69a311fc30741b7c877f0303155d91d6e3314096","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.1.2","_shasum":"cb38485f136f4bec89e25f897a1d608c096293e9","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.6.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"cb38485f136f4bec89e25f897a1d608c096293e9","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.1.2.tgz","integrity":"sha512-hKiRwyUYNPowpuYP3GgPnNZk2pZph5zj/Oe/ALlY0o5SdeNRmc1xDkOV4qXk//sdwiEzrclo15svwbKRJ8CbmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDPQ1QAmnd5TSHLZMBIqkLSElDE7K+afVPRAOyYvzCggIgFkZB9SzBiVlV9kZIPabE66xxyRbcKo4UhS8sk0edO+Q="}],"size":2725,"noattachment":false,"key":"/to-ico/-/to-ico-1.1.2.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-ico-1.1.2.tgz_1474315333380_0.24491486442275345"},"directories":{},"publish_time":1474315335478,"_cnpm_publish_time":1474315335478},"1.1.1":{"name":"to-ico","version":"1.1.1","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"arrify":"^1.0.1","image-size":"^0.5.0","parse-png":"^1.0.0","resize-img":"^1.1.0"},"devDependencies":{"ava":"*","file-type":"^3.8.0","pify":"^2.3.0","xo":"*"},"xo":{"esnext":true},"gitHead":"06a9443eb91eb92e11a249e82c53d1210b11472b","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.1.1","_shasum":"c5ad45751b11162792c64832ef7955f85e280c25","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"c5ad45751b11162792c64832ef7955f85e280c25","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.1.1.tgz","integrity":"sha512-CUgaL8fW0JsDe2hGeMp7UhAR0PpFZHzC9aDvDhxsVdspqEeSnqogBEjGYMQH4G5ykmPLf9sfjGJfbvUli5ZGpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbC2nHOY39fxUhmvHnH1445Q4/99V5aO15+7fXx/SDcAiAIPRUWciZ+LEP1mTtkCELMT8yZJSmOvep/a461XCMGmw=="}],"size":2733,"noattachment":false,"key":"/to-ico/-/to-ico-1.1.1.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-ico-1.1.1.tgz_1474306242630_0.725759074324742"},"directories":{},"publish_time":1474306244854,"_cnpm_publish_time":1474306244854},"1.1.0":{"name":"to-ico","version":"1.1.0","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"arrify":"^1.0.1","image-size":"^0.5.0","parse-png":"^1.0.0","resize-img":"^1.1.0"},"devDependencies":{"ava":"*","file-type":"^3.8.0","pify":"^2.3.0","xo":"*"},"xo":{"esnext":true},"gitHead":"e84d01af8da0b65a72f9b6775930ecc35687c018","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.1.0","_shasum":"0a71c52f9b9756d471750a498adc9e5d0314eea0","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"0a71c52f9b9756d471750a498adc9e5d0314eea0","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.1.0.tgz","integrity":"sha512-kBbEwBlsDNrdqLoFskwEtlFN5R/MN2cQ1Pd+TiN6RRpJUXqcywfzDscAQWiwvIuyO/A27seWF/q/UxrXzfw1Mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDodgJLdf+JdBBmkv4D4M4AlvPTHSKlGsIjM7A2OcJHKwIgeoM49aBC37bdwHP8IxhHWTAg6mvmSpuZfO5GGk7kAyQ="}],"size":2722,"noattachment":false,"key":"/to-ico/-/to-ico-1.1.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-ico-1.1.0.tgz_1473879241164_0.9313885476440191"},"directories":{},"publish_time":1473879242174,"_cnpm_publish_time":1473879242174},"1.0.1":{"name":"to-ico","version":"1.0.1","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"parse-png":"^1.0.0"},"devDependencies":{"ava":"*","file-type":"^3.8.0","pify":"^2.3.0","xo":"*"},"xo":{"esnext":true},"gitHead":"27f1b19433779e01d0af5492c1ba61d796e67b23","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.0.1","_shasum":"d97a6632c987a886dc865eda806b05e90cf5bb44","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.10.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"d97a6632c987a886dc865eda806b05e90cf5bb44","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.0.1.tgz","integrity":"sha512-6dSj5lSpoHcSlC9GCkvNBKYbrBmwrGyXfb3mMjS/jxlemd4nKbs+TJi1O1/mEhb7HJr2VzXOp1GorlldS4/svA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAuUkq2Zre5l5xlf3jhp2oD1e3anCbt3V7mLz7Kk1xGAIhAOk+7UcVkS8rbfFD2zek8JZpyrYGfjy6AX/S6eahGqME"}],"size":2333,"noattachment":false,"key":"/to-ico/-/to-ico-1.0.1.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-ico-1.0.1.tgz_1460966402169_0.06552563095465302"},"directories":{},"publish_time":1460966403142,"_cnpm_publish_time":1460966403142},"1.0.0":{"name":"to-ico","version":"1.0.0","description":"Convert PNG to ICO in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/to-ico.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["buffer","convert","fast","ico","png"],"dependencies":{"parse-png":"^1.0.0"},"devDependencies":{"ava":"*","file-type":"^3.8.0","pify":"^2.3.0","xo":"*"},"xo":{"esnext":true},"gitHead":"a530a5ff72b017539584cd4b1158aade521ade90","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"homepage":"https://github.com/kevva/to-ico#readme","_id":"to-ico@1.0.0","_shasum":"ef7bd96a6d237910c99bde0e033a3c9c38cd07fa","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.10.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"ef7bd96a6d237910c99bde0e033a3c9c38cd07fa","tarball":"http://registry-npm.ywwl.com/to-ico/download/to-ico-1.0.0.tgz","integrity":"sha512-1XHjL9KB/A61QMuls8If5g06zqActcAHYEsYfjXYPaq0iA5oxgzpmKabogp+dtMGF0luItouejH5D4tienLpGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/hCQQa/Nx0QwRIBYqtWP8UUmeEy2YQZ+UkVHpcm9aEAIhAKDWiazMQ7BPtJe8HhnOe8iB87Zm+09UL6prROnHPU0E"}],"size":2330,"noattachment":false,"key":"/to-ico/-/to-ico-1.0.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-ico-1.0.0.tgz_1460966099909_0.7591840387322009"},"directories":{},"publish_time":1460966100975,"_cnpm_publish_time":1460966100975}},"readme":"# to-ico [![Build Status](https://travis-ci.org/kevva/to-ico.svg?branch=master)](https://travis-ci.org/kevva/to-ico)\n\n> Convert PNG to ICO in memory\n\n\n## Install\n\n```\n$ npm install --save to-ico\n```\n\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst toIco = require('to-ico');\n\nconst files = [\n\tfs.readFileSync('unicorn-16x16.png'),\n\tfs.readFileSync('unicorn-32x32.png')\n];\n\ntoIco(files).then(buf => {\n\tfs.writeFileSync('favicon.ico', buf);\n});\n```\n\n\n## API\n\n### toIco(input, [options])\n\n#### input\n\nType: `Array` `string`\n\nArray of PNG image buffers.\n\nThe images must have a size of `16x16`, `24x24`, `32x32`, `48x48`, `64x64`, `128x128` or `256x256` and they must have an 8 bit per sample (channel) bit-depth (on Unix you can check this with the `file` command: RGB(A) is supported, while [colormap](https://en.wikipedia.org/wiki/Indexed_color) is not, because it's 8 bits per pixel instead of 8 bits per channel, which is 24 or 32 bits per pixel depending on the presence of the alpha channel). These are limitations in the underlying [`pngjs`](https://github.com/lukeapage/pngjs#pngjs) library. If you have a colormap PNG you can convert it to an RGB/RGBA PNG with commonly used image editing tools.\n\n#### options\n\n##### resize\n\nType: `boolean`<br>\nDefault: `false`\n\nUse the largest image and resize to sizes defined using the [sizes](#sizes) option.\n\n##### sizes\n\nType: `Array`<br>\nDefault: `[16, 24, 32, 48, 64, 128, 256]`\n\nArray of sizes to use when resizing.\n\n\n## Related\n\n* [to-ico-cli](https://github.com/kevva/to-ico-cli) - CLI for this module\n\n\n## License\n\nMIT © [Kevin Martensson](http://github.com/kevva)\n","_attachments":{},"homepage":"https://github.com/kevva/to-ico#readme","bugs":{"url":"https://github.com/kevva/to-ico/issues"},"license":"MIT"}