{"id":15285327,"url":"https://github.com/75lb/stream-handlebars","last_synced_at":"2025-10-07T00:32:32.935Z","repository":{"id":28711428,"uuid":"32232139","full_name":"75lb/stream-handlebars","owner":"75lb","description":"Extends handlebars with a streaming interface for .compile().","archived":true,"fork":false,"pushed_at":"2016-07-27T20:56:17.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T13:11:00.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/75lb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-14T21:10:37.000Z","updated_at":"2023-01-28T08:27:51.000Z","dependencies_parsed_at":"2022-08-30T16:42:36.294Z","dependency_job_id":null,"html_url":"https://github.com/75lb/stream-handlebars","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fstream-handlebars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fstream-handlebars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fstream-handlebars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fstream-handlebars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/75lb","download_url":"https://codeload.github.com/75lb/stream-handlebars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877435,"owners_count":16554878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T15:04:13.539Z","updated_at":"2025-10-07T00:32:27.645Z","avatar_url":"https://github.com/75lb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u003ca name=\"module_stream-handlebars\"\u003e\u003c/a\u003e\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 = '\u003cp\u003e\\{{paragraph}}\u003c/p\u003e'\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) : \u003ccode\u003eobject\u003c/code\u003e ⏏\n        * [.createCompileStream(template, [options])](#module_stream-handlebars--handlebars.createCompileStream) ⇒ \u003ccode\u003e[Transform](https://nodejs.org/api/stream.html#stream_class_stream_transform)\u003c/code\u003e\n\n\u003ca name=\"exp_module_stream-handlebars--handlebars\"\u003e\u003c/a\u003e\n\n### handlebars : \u003ccode\u003eobject\u003c/code\u003e ⏏\nThe regular [handlebars](http://handlebarsjs.com) module.\n\n**Kind**: Exported namespace  \n**Extends:** \u003ccode\u003e[handlebars](http://handlebarsjs.com)\u003c/code\u003e  \n\u003ca name=\"module_stream-handlebars--handlebars.createCompileStream\"\u003e\u003c/a\u003e\n\n#### handlebars.createCompileStream(template, [options]) ⇒ \u003ccode\u003e[Transform](https://nodejs.org/api/stream.html#stream_class_stream_transform)\u003c/code\u003e\na stream wrapper for the [handlebars.compile](http://handlebarsjs.com/reference.html) function\n\n**Kind**: static method of \u003ccode\u003e[handlebars](#exp_module_stream-handlebars--handlebars)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| template | \u003ccode\u003estring\u003c/code\u003e | required template |\n| [options] | \u003ccode\u003eobject\u003c/code\u003e | options passed to both Transform() and .compile() |\n| [options.objectMode] | \u003ccode\u003eobject\u003c/code\u003e | set to true if you wish you pass in the data as an object |\n| [options.data] | \u003ccode\u003eobject\u003c/code\u003e | default data object |\n\n\n* * *\n\n\u0026copy; 2015-16 Lloyd Brookes \\\u003c75pound@gmail.com\\\u003e. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F75lb%2Fstream-handlebars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F75lb%2Fstream-handlebars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F75lb%2Fstream-handlebars/lists"}