Socket
Socket
Sign inDemoInstall

gulp-check-unused-image

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-check-unused-image

Check unused image files


Version published
Maintainers
1
Created

Readme

Source

gulp-check-unused-image

In your project, you will add lots of images you don't know. This plugin will help you check unused image files in your code Support Type : jpg,gif,bmp,png,tif,raw,psd

//example
// if you have 'sample.png' file, it try to match your code
var image_file = "/image/sample.png";

Usage

To use gulp please ensure gulp is installed globally as well as locally.

npm install gulp -g
npm install gulp -D

Install gulp-check-unused-image as a development dependency

npm install gulp-check-unused-image -D

Add it to your gulpfile

var gulp  = require('gulp');
var check = require('gulp-check-unused-image');
var util = require('gulp-util');

gulp.task('check', function () {
  gulp.src(['test/**/*.*'])
    .pipe(check()
    .on('error', function (err) {
      util.beep();
      util.log(util.colors.red(err));
    });
});

This plugin will throw errors on the file stream and it is up to you to handle them. The first error found will stop the stream showing you what was found and what file it was found in.

Changelog

2017/02/07 - 1.0.0 - First release
2017/02/07 - 1.0.1 - Release Readme.md
2017/02/08 - 1.0.2 - Add image types (jpg,gif,bmp,tif,raw,psd)

Keywords

FAQs

Last updated on 08 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc