maxstache-stream

Maxstache transform stream

MIT 4 个版本
安装
npm install maxstache-stream
yarn add maxstache-stream
pnpm add maxstache-stream
bun add maxstache-stream
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

版本列表
1.0.4 2015-10-07
1.0.3 2015-10-06
1.0.2 2015-10-06
1.0.0 2015-10-06