gicon
v1.0.6
Published
Get the real path of favicon from website.
Downloads
3
Readme
Gicon
Get the real path of favicon from website.
Installation
npm install gicon
Usage
var gicon = require("gicon");
// get favicon url
gicon.favicon("github.com", function(err, path) {
// if err is not null, err contains error code and error message
// path is "https://github.com/favicon.ico";
});
// get favicon file buffer
gicon.favicon("requirejs.org", function(err, path, buffer) {
if(err) { throw err; }
// get the favicon file buffer
fs.writeFileSync("requirejs.org.png", buffer);
});
Service
http://gicon.lyitlove.com
License
MIT