Package Exports
- maxstache-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (maxstache-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
maxstache-stream
maxstache transform stream. Faster and simpler than {mu,min}stache.
Installation
$ npm install maxstache-streamUsage
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.