minstache-stream
This module is republished as maxstache-stream
minstache transform stream. Faster and simpler than mustache
.
Installation
$ npm install minstache-stream
Usage
const minstache = require('minstache-stream')
const fs = require('fs')
fs.createReadStream('./foobar.txt')
.pipe(minstache({ name: 'jjjohnny', occupation: 'wizard' }))
.pipe(process.stdout)
API
transformStream = minstache(vars)
Create a minstache transform stream that injects an object of variables. Uses
the {{varName}}
syntax to mark variables in templates.