1.0.1 • Published 9 years ago

minstache-stream v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

minstache-stream

NPM version build status Test coverage Downloads js-standard-style

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.

License

MIT