Skip to content

yoshuawuyts/maxstache-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Maxstache transform stream

Resources

License

Stars

Watchers

Forks

Packages

No packages published