Skip to content

binhndicts/Gicon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get the real path of favicon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%