JSPM

maxstache-stream

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 233700
  • Score
    100M100P100Q172980F
  • License MIT

Maxstache transform stream

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

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