Socket
Book a DemoInstallSign in
Socket

gulp-file-cache

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-file-cache

gulp plugin. Create a cache that filter files in your stream that haven't changed since last run

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

gulp-file-cache

NPM version Build Status Coverage Status Dependency Status

file-cache plugin for gulp

file-cache creates a cache file on your disk to filter files in your stream that haven't changed since last run.

Usage

First, install gulp-file-cache as a development dependency:

npm install --save-dev gulp-file-cache

Then, add it to your gulpfile.js:

The following task only lint new or updated files

var FileCache = require("gulp-file-cache");

var fileCache = new FileCache();

gulp.src("./src/*.ext")
	.pipe(fileCache.filter())
	.pipe(jshint())
	.pipe(fileCache.cache());

API

fileCache.create(name)

Create a new FileCache instance

name

Type: String Default: .gulp-cache

The cache file name saved on disk.

FileCache.filter()

Create a through stream that filters file that are already in the cache

FileCache.cache()

Cache file in the stram into the cache file

License

MIT License

Keywords

gulpplugin

FAQs

Package last updated on 01 Apr 2014

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