Skip to content

macat/gobble-rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gobble-rename

Rename files using JS .replace method.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-rename

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble('rename' ).transform('rename', {from: 'searchstring',
to: 'replacewith');

This will look for files with filename containing 'searchstring' and renames them with 'replacewith'.

a/b/c/searchstring.css > a/b/c/replacewith.css

License

MIT. Copyright 2015 Attila Maczak

Based on gobble's builtins/include.js.

MIT Licensed. Copyright 2014 Rich Harris.

About

gobble-rename

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published