maxstache-stream

Maxstache transform stream

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
maxstache-stream
901.0.49 years ago9 years agoMinified + gzip package size for maxstache-stream in KB

Readme

maxstache-stream
!NPM versionnpm-imagenpm-url !build statustravis-imagetravis-url !Test coveragecodecov-imagecodecov-url !Downloadsdownloads-imagedownloads-url !js-standard-stylestandard-imagestandard-url
maxstache0 transform stream. Faster and simpler than {mu,min}stache.

Installation

$ npm install maxstache-stream

Usage

const maxstache = require('maxstache-stream')
const fs = require('fs')

fs.createReadStream('./foobar.txt')
  .pipe(maxstache({ name: 'jjjohnny', occupation: 'wizard' }))
  .pipe(process.stdout)

API

transformStream = maxstache(vars)

Create a maxstache transform stream that injects an object of variables. Uses the {{varName}} syntax to mark variables in templates.

See Also

License

MIT