New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

enb-favicons

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enb-favicons

enb favicons tech

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

enb-favicons

ENB technology for favicons generation. Wrapper around favicons package.

Notes

Requirements for favicons source (master) picture:

  1. Should be square.
  2. Should be at least 57x57 (for ios), 70x70 (windows), 228x228 (coast), 300x300 (open_graph).

Installation

npm install --save-dev enb-favicons

Options

Options are the same as in favicons package, except for:

  • destination (path to destination folder);
  • target (needs for enb tech process).

Example

You can run it in project with YENV environment variable

YENV=favicons enb make -n

and those lines in your enb config:

if (config._env.YENV === 'favicons') {
    config.mode('favicons', function() {
        config.node('src/blocks/common.blocks/favicons', function(nodeConfig) {
            nodeConfig.addTech(
                [require('enb-favicons/techs/enb-favicons'), {
                    source : 'public/favicons/src/favicon.png',
                    configuration : {
                        path : 'favicons/dest',
                        logging : true
                    },
                    destination : 'public/favicons/dest/',
                    target : '?.bemhtml'
                }]
            );
            nodeConfig.addTargets([ '?.bemhtml' ]);
        });
    });
}

Finally, go to your page template and add block in head field:

    {
        block : 'page',
        head : [
            { block : 'favicons' }
        ]
    }

Keywords

FAQs

Package last updated on 19 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc