minstache-stream

Minstache transform stream

MIT 2 个版本
安装
npm install minstache-stream
yarn add minstache-stream
pnpm add minstache-stream
bun add minstache-stream
README

minstache-stream

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

This module is republished as maxstache-stream

minstache transform stream. Faster and simpler than mustache.

Installation

$ npm install minstache-stream

Usage

const minstache = require('minstache-stream')
const fs = require('fs')

fs.createReadStream('./foobar.txt')
  .pipe(minstache({ name: 'jjjohnny', occupation: 'wizard' }))
  .pipe(process.stdout)

API

transformStream = minstache(vars)

Create a minstache transform stream that injects an object of variables. Uses the {{varName}} syntax to mark variables in templates.

License

MIT

版本列表
1.0.1 2015-10-06
1.0.0 2015-10-02