# dombat

> ultra-lightweight DOM builder

Latest version **1.2.2** (published 2019-03-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2019-03-19 |
| First published | 2019-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xist |
| Maintainers | xist |

## Links

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

## Dependencies (1)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2

## Recent versions

- 1.2.2 (latest) — 2019-03-19
- 1.2.1 — 2019-03-07
- 1.2.0 — 2019-03-07
- 1.1.3 — 2019-03-07
- 1.1.2 — 2019-03-07
- 1.1.1 — 2019-03-07
- 1.1.0 — 2019-03-07
- 1.0.0 — 2019-03-07

## README

# dombat

![](https://badgen.net/npm/v/dombat?color=grey)
![](https://badgen.net/npm/dw/dombat)
![](https://badgen.net/packagephobia/install/dombat?color=055ff3)
![](https://badgen.net/badge/code%20style/prettier/ff51bc)

### Install

From NPM:  
`npm install dombat`

From GitHub:  
`npm install xist/dombat`

### Example

```js
import { html, head, title, body, div, p } from "dombat";
// import * as tag from "dombat"; <-- or you can do this

const dom = html(
  head(title("Example DOM")),
  body(div(p("This is an example paragraph inside a div.")))
);
```

The output of `dom.getHTML()` would be:

```html
<html>
  <head>
    <title>Example DOM</title>
  </head>
  <body>
    <div>
      <p>This is an example paragraph inside a div.</p>
    </div>
  </body>
</html>
```

### Contribute

Pull requests are encouraged.

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