Stream Rename
A simple stream transform that renames files/directories.
This module makes no assumptions how you read or write streams.
Usage
// create a streamvar globSteam = ;var streamRename = ;globSteam ; // path will contain compressed.min.js
Gulp Usage
// create a streamvar gulp = ;var streamRename = ;gulp ; // path will contain compressed.min.js
API
var streamRename = ;
var sr = streamRename(opts={})
opts.prefix
a prefix to the new or original basename. ie: pre-
opts.basename
is the new name of the file or directory you want to change.
opts.extname
is a new extension you want to add to the basename. ie: .js
opts.suffix
a suffix to the new or original basename. ie: -ing
returns a through
stream to pipe
to a write stream.