npm.io
1.0.0 • Published 10 years ago

rufio-filter-mustache

Licence
ISC
Version
1.0.0
Deps
3
Vulns
0
Weekly
0

rufio-filter-mustache

NPM Version NPM Downloads Build Status js-happiness-style

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());
	});

Keywords