How to use the favicons function in favicons

To help you get started, we’ve selected a few favicons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dmnsgn / frontend-boilerplate / config / scripts / favicons.js View on Github external
} else {
    console.log(chalk.yellow("Favicons files missing in the response."));
  }

  if (response.html) {
    fs.writeFileSync(
      `${PATHS.get("src")}/templates/_favicons.ejs`,
      response.html.join("\n")
    );
    console.log(chalk.green("Favicons template generated."));
  } else {
    console.log(chalk.yellow("Favicons template missing in the response."));
  }
};

favicons(source, configuration, callback);
github dmnsgn / frontend-boilerplate / boilerplate / tasks / images.js View on Github external
export function generateFavicons(done) {
  return favicons(`${config.src}/favicon.png`, {
    appName: config.title,
    appDescription: config.description,
    developerName: config.author,
    developerURL: config.developerURL,
    background: 'transparent',
    path: 'images/favicon/',
    url: 'images/share.jpg',
    display: 'standalone',
    orientation: 'portrait',
    version: config.version,
    logging: config.verbose,
    online: false,
    icons: {
      android: true,
      appleIcon: true,
      appleStartup: true,

favicons

Favicon generator for Node.js

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis

Popular favicons functions