gicon

1.0.6 • Public • Published

Gicon

Build Status Gitter

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

Readme

Keywords

Package Sidebar

Install

npm i gicon

Weekly Downloads

1

Version

1.0.6

License

MIT

Last publish

Collaborators

  • kenticny