favicon2png

Get favicon from domain and convert to PNG

Usage no npm install needed!

<script type="module">
  import favicon2png from 'https://cdn.skypack.dev/favicon2png';
</script>

README

Node.js favicon2PNG

Get favicon from domain. Convert to PNG.

Usage

var favicon2PNG = require('favicon2png');
favicon2PNG.readFile('www.github.com', function (err, data) {  
    if (err) throw err;  
    // use data  
});  

Dependencies

imagemagick
favicon (use fork https://github.com/gilleswittenberg/node-favicon for better results)
wget