# hogans

> hogan.js templating with stream

Latest version **0.0.2** (published 2015-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install hogans
pnpm add hogans
yarn add hogans
bun add hogans
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-08-08 |
| First published | 2015-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ishiduca@gmail.com |
| Maintainers | ishiduca |
| Keywords | template, hogan.js, hoganjs, hogan, stream |

## Links

- npm: https://www.npmjs.com/package/hogans
- Repository: https://github.com/ishiduca/node-hogans
- Issues: https://github.com/ishiduca/node-hogans/issues
- npm.io page: https://npm.io/package/hogans

## Dependencies (3)

- [mime](https://npm.io/package/mime.md) ^1.3.4
- [hogan.js](https://npm.io/package/hogan.js.md) ^3.0.2
- [through2](https://npm.io/package/through2.md) ^2.0.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-08-08
- 0.0.1 — 2015-08-08

## README

# hogans

## usage

```js
var render    = require('hogans')
var filePath  = __dirname + '/path/to/template.ext'
var dashboard = render(filePath)

var server = http.createServer(function (req, res) {
     dashboard({title: 'Dashboard'}).once('error', onError).pipe(res)

    function onError (err) {
        res.statusCode = 500
        res.end(err.message)
        console.error(err)
    }
}).listen(3000)
```

## example

```
$ PORT=8080 node example/app &

$ curl -sS -v http://localhost:8080?title=Poo
```

## api

### var render = require('hogans')

### var f = render(templatePath)

### var stream = f(data)

## test

npm test

## author

ishiduca@gmail.com

# license

MIT

---
_Source: https://npm.io/package/hogans · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
