gulp-chrome-manifest-iconify

2.0.3 • Public • Published

gulp-chrome-manifest-iconify

NPM version node Build Status Coverage Status dependencies Status devDependencies Status

A Gulp plugin for chrome-manifest-iconify

When creating a Chrome extension, you need to provide a set of icons for context menus, browser actions, page actions, and the Chrome Web Store. Usually, these are just resized versions of the same image. The goal of gulp-chrome-manifest-iconify is to intellegently automate the tedious process of generated all these resized clones. In a Gulp task, simply pipe this plugin a master icon and indicate the path to a v2 manifest. It will parse the manifest to determine the sizes, names, types, and paths of the icons it needs to generate. You can choose from several resizing algorithms as provide by Sharp so your entire icon set looks awesome.

Installation

npm install --save-dev gulp-chrome-manifest-iconify

API

gulp-chrome-manifest-iconify

The gulp-chrome-manifest-iconify module

Example

const gulp = require('gulp');
const chromeManifestIconify = require('gulp-chrome-manifest-iconify');
 
gulp.task('default', () =>
    gulp.src('icon.png')
        .pipe(chromeManifestIconify({
            manifest: 'src/manifest.json',
            resizeMode: 'nearest'
        }))
        .pipe(gulp.dest('build')));

module.exports(options) ⇒ Stream

A Gulp plugin that generates icon set for a Chrome extension or app by parsing the v2 manifest.

Kind: Exported function
Returns: Stream - A Node stream that produces the icons

Param Type Default Description
options object The options for generating the icons
[options.manifest] string "manifest.json" The path to the v2 manifest.json
[options.resizeMode] string The name of a Sharp kernel

Package Sidebar

Install

npm i gulp-chrome-manifest-iconify

Weekly Downloads

0

Version

2.0.3

License

MIT

Unpacked Size

7.83 kB

Total Files

4

Last publish

Collaborators

  • steven-roberts