Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including grunt-favicon with all npm packages installed. Try it out:

grunt-favicon lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

require("grunt/package.json"); // grunt is a peer dependency. // require("grunt-favicon/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

grunt-favicon v1.0.8

Generate site favicons via ImageMagick

grunt-favicon NPM version Built with Grunt

Npm Downloads Npm Downloads

Generate site favicons via ImageMagick.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-favicon --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of javascript:


WARNING: This extension require global install ImageMagick.

  • For Windows go to the ImageMagick and download installer.
  • For Debian, Ubuntu or Mint run on command line: sudo apt-get install imagemagick
  • For Redhut, Centos or Fedora run on command line: sudo yum install ImageMagick
  • For Gentoo run on command line: sudo emerge media-gfx/imagemagick
  • For MacOS run on command line: sudo port install ImageMagick



  • type <number>
  • default 6

Count of images into icon.


  • type <number>
  • default 8

Count of bits for color.


    favicon: {
        options: {
            // Icons contains 3 images
            // (16x16, 32x32, 48x48)
            countOfImages: 3,
            // for 256 colors, is max value
            colorDepth: 8
        tasks: {
            options: {
                // override options if needed
            files: [{
                expand : true,
                cwd    : "src",
                ext    : ".ico",
                dest   : "dest",
                src    : "*.png"
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free