1.0.0 • Published 9 years ago
rufio-filter-mustache v1.0.0
rufio-filter-mustache
Install
$ npm install --save rufio-filter-mustache
Usage
var fs = require('fs');
var mustacheFilter = require('rufio-filter-mustache')();
// Pipe file content to the filter
fs.createReadStream('./file.md')
.pipe(mustacheFilter())
.on('data', function (c) {
// `c` is the rendered mustache template as a buffer
console.log(c.toString());
});
1.0.0
9 years ago