maxstache-stream
Maxstache transform stream
Last updated 10 years ago by yoshuawuyts .
MIT · Repository · Bugs · Original npm
$ cnpm install maxstache-stream 
SYNC missed versions from official npm registry.

maxstache-stream

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

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.

See Also

License

MIT

Current Tags

  • 1.0.4                                ...           latest (10 years ago)

1 Versions

  • 1.0.4                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org