# view4pug

> html view render for pug

Latest version **0.0.8** (published 2017-04-10) · ISC license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2017-04-10 |
| First published | 2017-02-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JoeyFang |
| Maintainers | josudoey |
| Keywords | pug, view, html |

## Links

- npm: https://www.npmjs.com/package/view4pug
- Repository: https://github.com/josudoey/view4pug
- Homepage: https://github.com/josudoey/view4pug#readme
- Issues: https://github.com/josudoey/view4pug/issues
- npm.io page: https://npm.io/package/view4pug

## Dependencies (2)

- [pug](https://npm.io/package/pug.md) ^2.0.0-beta11
- [resolve](https://npm.io/package/resolve.md) ^1.2.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2017-04-10
- 0.0.7 — 2017-02-07
- 0.0.6 — 2017-02-07
- 0.0.5 — 2017-02-07
- 0.0.4 — 2017-02-07
- 0.0.3 — 2017-02-07
- 0.0.2 — 2017-02-07
- 0.0.1 — 2017-02-07
- 0.0.0 — 2017-02-07

## README

# view4pug

## Installation

```bash
$ npm install --save view4pug
```

## Example

```js
var view = require('view4pug')();
// pug src
// https://github.com/josudoey/view4pug/blob/master/example.pug
console.log(view('view4pug/example'));
console.log(view('view4pug/example', {
  youAreUsingPug: true
}));

// Output:
// <!DOCTYPE html><html lang="en"><head><title></title><script type="text/javascript">if (foo) bar(1 + 5)</script></head><body><h1>Pug - node template engine</h1><div class="col" id="container"><p>Get on it!</p><p>Pug is a terse and simple templating language with a
// strong focus on performance and powerful features.</p></div></body></html>
// <!DOCTYPE html><html lang="en"><head><title></title><script type="text/javascript">if (foo) bar(1 + 5)</script></head><body><h1>Pug - node template engine</h1><div class="col" id="container"><p>You are amazing</p><p>Pug is a terse and simple templating language with a
// strong focus on performance and powerful features.</p></div></body></html>
```

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