process-folder
Loop recursively over files in a folder, pipe them to stdin of a command and write the output to a target folder.
install
$ npm install process-folder
usage
var processFolder = var processor = processor processor
The above example will load all .jsx
files from __dirname + '/fixtures/src'
and pipe them via a mercury-jsx
.
The results of each file will be written to __dirname + '/fixtures/build'
with the .jsx suffix replaced with .js
license
MIT