0.1.2 • Published 10 years ago

jade-stream v0.1.2

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

Simple to use Jade Stream

Install: $ npm install jade-stream

It is possible to pipe a readable stream to it:

var jadeStream = require('jade-stream')
  , fs = require('fs');

var options = { my: 'jade options', or: 'locals' };

fs.createReadStream('./index.jade')
  .pipe(jadeStream(options))
  .pipe(process.stdout);

A readable stream can also be created:

var jadeStream = require('jade-stream')
  , fs = require('fs');

var options = { my: 'jade options', or: 'locals' };

jadeStream.createReadStream('./index.jade', options)
  .pipe(process.stdout);

At the moment the createReadStream actually reads the file synchronously because when testing it was ~15ms faster to read the file sync than to create a readable stream.

It is likely in the future a flag could be added to the options which would force this to be completely streaming.

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago