app-ico
v0.3.1
Published
Favicons generator using the RealFaviconGenerator API and simplified configuration
Downloads
16
Maintainers
Readme
app-ico
- Favicon files generator using the RealFaviconGenerator API and simplified configuration.
- Provides Node API and CLI
Usage
Create a configuration js file like appico.config.js
(see example and configuration readme).
Usage Node API
let config = require('./appico.config');
let createIcons = require('app-ico');
createIcons(config).then(result => {
// "result.response" contains the response data from the RealFaviconGenerator API
// if config.output[files|html|response] is set, files will be written in the directory
});
Usage CLI
app-ico
Will look for appico.config.js in the root directory by default.app-ico -c config/favicon.config
will look for config/appico.config.js- in package.json e. g.:
{ "scripts": { "favicons": "app-ico -c config/favicon.config" } }