sylar

0.3.0 • Public • Published

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.2.0

Installation

  • use npm: npm install sylar
  • or put sylar as a dependency in package.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": function( content ) {
			return _.template( content, data );
		}
	}
} ).done( function() {
	console.log( "Eveything has been copied" );
} ).fail( function( error ) {
	console.log( "An error occured", error );
} );

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.01
0.2.00
0.1.10
0.1.00

Package Sidebar

Install

npm i sylar

Weekly Downloads

1

Version

0.3.0

License

none

Last publish

Collaborators

  • jaubourg