<commit_before>##gulp-asset-cache
A disk based caching task for [gulp](http://gulpjs.com/). This plugin was built mainly to deal with the issues around having no dist directory and wanting to prevent image/video compression from happening multiple times on larger teams. If you do have the luxury of a src/dist file structure I recommend [gulp-changed](https://www.npmjs.com/package/gulp-changed) or [gulp-newer](https://www.npmjs.com/package/gulp-newer) as they easily integrate with that file structure.

##Installation
Install package with NPM and add it to your development dependencies:  
`npm install --save-dev gulp-asset-cache`

##Usage
```javascript
var gulp = require('gulp'),
	imagemin = require('gulp-imagemin'),
	assetCache = require('gulp-asset-cache');

gulp.task('images', function() {
	return gulp.src('./images/*.{jpg,png,jpeg,gif,svg})
		// Specify the location and name of the cache file
		.pipe(assetCache('./images/.image-cache))
		.pipe(imagemin({
			verbose: true
		}))
		.pipe(gulp.dest('./images/'));
});
```

This will create a cache file named `.image-cache` of all files passed through the pipeline to be excluded from subsequent runs. 

##Parameters<commit_msg>Adding missing apostrophe in usage example<commit_after>##gulp-asset-cache
A disk based caching task for [gulp](http://gulpjs.com/). This plugin was built mainly to deal with the issues around having no dist directory and wanting to prevent image/video compression from happening multiple times on larger teams. If you do have the luxury of a src/dist file structure I recommend [gulp-changed](https://www.npmjs.com/package/gulp-changed) or [gulp-newer](https://www.npmjs.com/package/gulp-newer) as they easily integrate with that file structure.

##Installation
Install package with NPM and add it to your development dependencies:  
`npm install --save-dev gulp-asset-cache`

##Usage
```javascript
var gulp = require('gulp'),
	imagemin = require('gulp-imagemin'),
	assetCache = require('gulp-asset-cache');

gulp.task('images', function() {
	return gulp.src('./images/*.{jpg,png,jpeg,gif,svg'})
		// Specify the location and name of the cache file
		.pipe(assetCache('./images/.image-cache))
		.pipe(imagemin({
			verbose: true
		}))
		.pipe(gulp.dest('./images/'));
});
```

This will create a cache file named `.image-cache` of all files passed through the pipeline to be excluded from subsequent runs. 

##Parameters
{'fraction_non_alphanumeric': 0.12645107794361526, 'fraction_numerical': 0.0, 'mean_word_length': 4.559907834101383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1105155', 'n_tokens_mistral': 732, 'n_tokens_neox': 689, 'n_words': 254}