How to use favicons - 4 common examples

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,
github onedevstudio / starter-kit / gulpfile.js View on Github external
task('favicons', () =>
  src(`${config.src.images}/icon.png`)
    .pipe(favicons(config.favicons)).on('error', $.util.log)
    .pipe($.size(config.size('favicons')))
    .pipe(dest(`${config.dest.dist}${config.favicons.path}`)))
github tlambert03 / FPbase / gulpfile.js View on Github external
gulp.task("favicon", function() {
  return gulp
    .src(paths.images + "/favicon.png")
    .pipe(
      favicons({
        appName: "FPbase",
        appDescription: "The Fluorescent Protein Database",
        developerName: "Talley Lambert",
        developerURL: "http://talleylambert.com/",
        background: "#17941e",
        path: "/",
        url: "http://fpbase.org/",
        display: "standalone",
        orientation: "portrait",
        start_url: "/",
        version: 1.0,
        logging: false,
        html: "index.html",
        pipeHTML: true,
        replace: true
      })

favicons

Favicon generator for Node.js

MIT
Latest version published 9 months ago

Package Health Score

74 / 100
Full package analysis

Popular favicons functions