gulp-regex-rename
Gulp-regex-rename is a gulp plugin for renaming files by matching a regular expression.
Usage
Gulp-regex-rename requires two parameters:
- A regex literal
- A string to replace the matched regex
Note that the replacement string can be an empty string.
var babel = var gulp = var rename = // Example 1gulp // Example 2gulp
Both examples produce equivalent results. Example 1 uses a typical replacement string, while Example 2 uses an empty string, deleting the matched regex.
License
MIT. See license.