{"_id":"stream-handlebars","_rev":"334955","name":"stream-handlebars","description":"Extends handlebars with a streaming interface for .compile()","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-08T13:15:44.000Z","created":"2015-03-14T21:10:57.551Z","0.2.0":"2016-07-27T20:56:22.491Z","0.1.6":"2015-05-27T22:13:41.251Z","0.1.5":"2015-03-30T18:29:22.105Z","0.1.4":"2015-03-21T20:46:58.028Z","0.1.3":"2015-03-14T23:48:00.523Z","0.1.2":"2015-03-14T23:37:33.452Z","0.1.1":"2015-03-14T21:27:37.154Z","0.1.0":"2015-03-14T21:10:57.551Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/stream-handlebars.git"},"versions":{"0.2.0":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.0","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"git+https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^4.0.5","object-tools":"^2.0.6"},"devDependencies":{"jsdoc-to-markdown":"^1.3.6","tape":"^4.6.0"},"license":"MIT","gitHead":"230cc807ea44e0d8c8bfee0b83ea7c0708ad6c26","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars#readme","_id":"stream-handlebars@0.2.0","_shasum":"1fb3fefe34a7342ce093a62f25dcaec784f6a1bb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"1fb3fefe34a7342ce093a62f25dcaec784f6a1bb","size":3625,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.2.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stream-handlebars-0.2.0.tgz_1469652979864_0.30929660028778017"},"directories":{},"publish_time":1469652982491,"_cnpm_publish_time":1469652982491,"_hasShrinkwrap":false},"0.1.6":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.6","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"git+https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0","object-tools":"^1.2.1"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4"},"license":"MIT","gitHead":"d279030fb9587c518a9fcb6f0f6595921d9dac04","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars#readme","_id":"stream-handlebars@0.1.6","_shasum":"7305b5064203da171608c478acf642a149892a2f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"7305b5064203da171608c478acf642a149892a2f","size":3706,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.6.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1432764821251,"_cnpm_publish_time":1432764821251,"_hasShrinkwrap":false},"0.1.5":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.5","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","bin":{"stream-handlebars":"bin/cli.js"},"keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js |tap-spec","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0","object-tools":"^1.2.1"},"devDependencies":{"tap-spec":"^2.2.2","tape":"^3.5.0"},"license":"MIT","gitHead":"3f479a7af2ea3130a2d12aac02acbd3a85c61ede","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars","_id":"stream-handlebars@0.1.5","_shasum":"a02b2cc93654a3a670ea632b713bd966c5574d9d","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"a02b2cc93654a3a670ea632b713bd966c5574d9d","size":3619,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.5.tgz"},"directories":{},"publish_time":1427740162105,"_cnpm_publish_time":1427740162105,"_hasShrinkwrap":false},"0.1.4":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.4","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","bin":{"stream-handlebars":"bin/cli.js"},"keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js |tap-spec","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0","object-tools":"^1.2.1"},"devDependencies":{"tap-spec":"^2.2.2","tape":"^3.5.0"},"license":"MIT","gitHead":"5fc1dccdff2c184501967804ddee8b738c4696ba","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars","_id":"stream-handlebars@0.1.4","_shasum":"4f5c0e387e65b4c4ad56c6b7fb6535f923eb2c13","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"4f5c0e387e65b4c4ad56c6b7fb6535f923eb2c13","size":3460,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.4.tgz"},"directories":{},"publish_time":1426970818028,"_cnpm_publish_time":1426970818028,"_hasShrinkwrap":false},"0.1.3":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.3","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","bin":{"stream-handlebars":"bin/cli.js"},"keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js |tap-spec","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0","object-tools":"^1.2.1"},"devDependencies":{"tap-spec":"^2.2.2","tape":"^3.5.0"},"license":"MIT","gitHead":"a0134b74d00c9b6092d03c0fc7a2bb0c7be25c35","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars","_id":"stream-handlebars@0.1.3","_shasum":"92c16f350c04a88ddf17021d7424b5a983c27c48","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"92c16f350c04a88ddf17021d7424b5a983c27c48","size":3453,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.3.tgz"},"directories":{},"publish_time":1426376880523,"_cnpm_publish_time":1426376880523,"_hasShrinkwrap":false},"0.1.2":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.2","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","bin":{"stream-handlebars":"bin/cli.js"},"keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js |tap-spec","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0","object-tools":"^1.2.1"},"devDependencies":{"tape":"^3.5.0"},"license":"MIT","gitHead":"b434349bec9ed73caa924b67e758eb1db404bc09","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars","_id":"stream-handlebars@0.1.2","_shasum":"cbcbb7507cd29f681cc14e839894acc5f917efe6","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"cbcbb7507cd29f681cc14e839894acc5f917efe6","size":3443,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.2.tgz"},"directories":{},"publish_time":1426376253452,"_cnpm_publish_time":1426376253452,"_hasShrinkwrap":false},"0.1.1":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"Extends handlebars with a streaming interface for .compile()","repository":{"type":"git","url":"https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","bin":{"stream-handlebars":"bin/cli.js"},"keywords":["handlebars","stream","compile"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0"},"devDependencies":{"tape":"^3.5.0"},"license":"MIT","gitHead":"de59bfbd1d001760035758c7e25a0dd508920f79","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars","_id":"stream-handlebars@0.1.1","_shasum":"2b3606cb70fa9d2bbc819f807a677717648241d2","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"2b3606cb70fa9d2bbc819f807a677717648241d2","size":3273,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.1.tgz"},"directories":{},"publish_time":1426368457154,"_cnpm_publish_time":1426368457154,"_hasShrinkwrap":false},"0.1.0":{"name":"stream-handlebars","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"stream-handlebars","repository":{"type":"git","url":"https://github.com/75lb/stream-handlebars.git"},"main":"./lib/stream-handlebars.js","bin":{"stream-handlebars":"bin/cli.js"},"keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs -l js lib/*.js > README.md; echo"},"dependencies":{"handlebars":"^3.0.0"},"devDependencies":{"tape":"^3.5.0"},"gitHead":"659c53623cd97b3a7570319c8fdae3e9fe404fd3","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"homepage":"https://github.com/75lb/stream-handlebars","_id":"stream-handlebars@0.1.0","_shasum":"8c47ccabea5b094a31c3caa5429fb6f5e331b9f2","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"8c47ccabea5b094a31c3caa5429fb6f5e331b9f2","size":2437,"noattachment":false,"key":"/stream-handlebars/-/stream-handlebars-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-handlebars/download/stream-handlebars-0.1.0.tgz"},"directories":{},"publish_time":1426367457551,"_cnpm_publish_time":1426367457551,"_hasShrinkwrap":false}},"readme":"[![view on npm](http://img.shields.io/npm/v/stream-handlebars.svg)](https://www.npmjs.org/package/stream-handlebars)\n[![npm module downloads per month](http://img.shields.io/npm/dm/stream-handlebars.svg)](https://www.npmjs.org/package/stream-handlebars)\n[![Build Status](https://travis-ci.org/75lb/stream-handlebars.svg?branch=master)](https://travis-ci.org/75lb/stream-handlebars)\n[![Dependency Status](https://david-dm.org/75lb/stream-handlebars.svg)](https://david-dm.org/75lb/stream-handlebars)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_stream-handlebars\"></a>\n\n## stream-handlebars\nExtends handlebars with a streaming interface for .compile().\n\n**Example**  \n```js\nvar handlebars = require('stream-handlebars')\nvar fs = require('fs')\n\nvar template = '<p>\\{{paragraph}}</p>'\n\n// it's just regular handlebars..\nhandlebars.registerPartial('whatever', 'the partial content')\n\n// ..with the addition of a streaming interface for .compile()\nvar compileStream = handlebars.createCompileStream(template)\n\n// the template is compiled using the piped-in JSON as context\nfs.createReadStream('./template-data.json', 'utf8')\n    .pipe(compileStream)\n    .pipe(process.stdout)\n```\n\n* [stream-handlebars](#module_stream-handlebars)\n    * [handlebars](#exp_module_stream-handlebars--handlebars) : <code>object</code> ⏏\n        * [.createCompileStream(template, [options])](#module_stream-handlebars--handlebars.createCompileStream) ⇒ <code>[Transform](https://nodejs.org/api/stream.html#stream_class_stream_transform)</code>\n\n<a name=\"exp_module_stream-handlebars--handlebars\"></a>\n\n### handlebars : <code>object</code> ⏏\nThe regular [handlebars](http://handlebarsjs.com) module.\n\n**Kind**: Exported namespace  \n**Extends:** <code>[handlebars](http://handlebarsjs.com)</code>  \n<a name=\"module_stream-handlebars--handlebars.createCompileStream\"></a>\n\n#### handlebars.createCompileStream(template, [options]) ⇒ <code>[Transform](https://nodejs.org/api/stream.html#stream_class_stream_transform)</code>\na stream wrapper for the [handlebars.compile](http://handlebarsjs.com/reference.html) function\n\n**Kind**: static method of <code>[handlebars](#exp_module_stream-handlebars--handlebars)</code>  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| template | <code>string</code> | required template |\n| [options] | <code>object</code> | options passed to both Transform() and .compile() |\n| [options.objectMode] | <code>object</code> | set to true if you wish you pass in the data as an object |\n| [options.data] | <code>object</code> | default data object |\n\n\n* * *\n\n&copy; 2015-16 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/stream-handlebars#readme","bugs":{"url":"https://github.com/75lb/stream-handlebars/issues"},"license":"MIT"}