sylar
v0.3.0
Published
recursively copy directories and files, eventually modifying them in the process
Downloads
1
Readme
Sylar
Sylar is a utility function that recursively copies the content of a folder into another location, eventually transforming the content in the process.
Latest version of Sylar is version 0.1.0
Installation
- use npm:
npm install sylar
- or put
sylar
as a dependency inpackage.json
Sylar itself depends on :
- JQDeferred, an automated port of jQuery Deferreds to node
- fence, a jQuery Deferreds utility,
- lodash which you probably know about alreay ;)
Once Sylar is installed, require
it in your code:
var sylar = require( "sylar" );
Usage
sylar( {
src: "path/to/source/folder",
dest: "path/to/destination/folder",
exclude: {
"*.tmp;*.bin;**/inlineImages/**": true
},
filter: {
"*.css;*.js;*.json": sylar.template( data )
}
} ).done( function() {
console.log( "Eveything has been copied" );
} ).fail( function( error ) {
console.log( "An error occured", error );
} );