Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
to-ico
Advanced tools
Readme
Convert PNG to ICO in memory
$ npm install --save to-ico
const fs = require('fs');
const toIco = require('to-ico');
const files = [
fs.readFileSync('unicorn-16x16.png'),
fs.readFileSync('unicorn-32x32.png')
];
toIco(files).then(buf => {
fs.writeFileSync('favicon.ico', buf);
});
Required
Type: array
An array of PNG image buffers. The images must have a size of 16x16
, 24x24
, 32x32
, 48x48
, 64x64
, 128x128
or 256x256
.
MIT © Kevin Martensson
FAQs
Convert PNG to ICO in memory
We found that to-ico demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.