# render-html-rpf

> Basic HTML rendering library.

Latest version **0.1.2** (published 2017-02-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install render-html-rpf
pnpm add render-html-rpf
yarn add render-html-rpf
bun add render-html-rpf
```

## 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.1.2 |
| Published | 2017-02-12 |
| First published | 2017-02-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @evanxsummers |
| Maintainers | evanx |

## Links

- npm: https://www.npmjs.com/package/render-html-rpf
- Repository: https://github.com/evanx/render-html-rpf
- Issues: https://github.com/evanx/render-html-rpf/issues
- npm.io page: https://npm.io/package/render-html-rpf

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Recent versions

- 0.1.2 (latest) — 2017-02-12
- 0.1.1 — 2017-02-12
- 0.1.0 — 2017-02-12

## README

# render-html-rpf

Basic HTML rendering library.

Named in honour of https://en.wikipedia.org/wiki/Richard_Feynman

## Use case

We wish to generate a simple HTML page.

```
const h = require('render-html-rpf');

module.exports = (api, metrics) => {
   api.get('/metrics', async ctx => {       
       if (/(Mobile)/.test(ctx.get('user-agent'))) {
           h.page(ctx, {
               title: 'gcache',
               heading: 'Metrics',
               elements: [{
                   name: 'pre',
                   content: JSON.stringify(metrics, null, 2)}
               ],
               footerLink: 'https://github.com/evanx/geo-cache'
           });
       }
   });
  }
```

## Used by

https://github.com/evanx/geo-cache

<hr>
By https://twitter.com/@evanxsummers

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