Package Exports
- favicons
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (favicons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Favicons 
Favicons generator for Node.js. Produces a multi-size favicon from a single image. Port of grunt-favicons (the good parts at least). Originally "favicon-generator" and "metaimage-generator". Installed through NPM with:
npm install favicons --save-devRequires ImageMagick which you can get through Brew with:
brew install imagemagickSimply require the module and execute it with an optional object of configuration.
- I/O
- Source: The source image used to produce the favicon
stringorobject - Dest: The destination path
string
- Source: The source image used to produce the favicon
- Icons
- Android: create Android homescreen icon
boolean - Apple: create Apple touch icons
boolean - Coast: create Opera Coast icon
boolean - Favicons: create regular favicons
boolean - Firefox: create Firefox OS icons
boolean - OpenGraph: create OpenGraph image for Facebook
boolean - Windows: create Windows 8 tiles
boolean
- Android: create Android homescreen icon
- Miscellaneous:
- HTML: optional file to write metadata links to
string, typically "index.html" - Background: background for Windows 8 tiles and Apple touch icons
#string - TileBlackWhite: make white-only icon on Windows 8 tile
boolean - Manifest: path to Firefox manifest you want to add links to icons
string, typically "manifest.webapp" - TrueColor: use true color for favicon.ico or 256 сolor. True color is larger
boolean - Logging: print logs to console
- Callback: function to execute upon completion
function(params include 'response' and 'html')
- HTML: optional file to write metadata links to
You can either specify a string for the source e.g. logo.png or a series of images e.g.
source: {
small: 'logo-small.png', // Should be 64x64px or smaller
medium: 'logo-medium.png', // Should be between 65x65px to 310x310px
large: 'logo-large.png' // Should be 311x311px or larger
}Defaults are shown below:
var favicons = require('favicons');
favicons({
// I/O
source: 'logo.png',
dest: 'images',
// Icon Types
android: true,
apple: true,
coast: true,
favicons: true,
firefox: true,
opengraph: true,
windows: true,
// Miscellaneous
html: null,
background: '#1d1d1d',
tileBlackWhite: false,
manifest: null,
trueColor: false,
logging: false,
callback: null
});Thanks to @addyosmani, @gauntface, @paulirish, @mathiasbynens and @pbakaus for their input on multiple source images for v1.4.0.