You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unknown
0073d80258
|
2 years ago | |
---|---|---|
.. | ||
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
README.md
maxstache-stream
maxstache 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.