@zilero/gulp-refilename
v1.0.4
Published
A powerful Gulp plugin for flexible file renaming with pattern matching and custom transformations support
Maintainers
Readme
📝 Powerful Gulp plugin for flexible file renaming with advanced pattern support.
Installation • Options • Example
✨ Features
- 📄 Simple and complex file renaming
- 🎯 Prefix and suffix support
- 📝 TypeScript support
- 🚀 Stream-based processing
- 💡 Multiple extension handling
- 🛠️ Directory structure preservation
🚀 Installation
npm install @zilero/gulp-refilename --save-dev
# or
yarn add @zilero/gulp-refilename --dev
# or
pnpm add @zilero/gulp-refilename --save-dev⚙️ Options
dirname
- Type:
string - Default:
original directory - Change directory path
stem
- Type:
string - Default:
'' - Change filename
extname
- Type:
string - Default:
original extension - Change file extension
prefix
- Type:
string - Default:
'' - Add prefix to filename
suffix
- Type:
string - Default:
'' - Add suffix to filename
📝 Example
gulp.task('complex-rename', () => {
return gulp.src('src/**/*')
.pipe(GulpRefilename({
prefix: 'processed-',
suffix: '-v1',
extname: '.js',
}))
.pipe(gulp.dest('dist'));
});🤝 Contributing
If you would like to contribute to the project, please create a pull request or leave feedback. We are always open to new ideas and improvements!
🐛 Issues
Found a bug? Want to request a feature? Please create an issue.
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by Zilero
