# sub

> A subset of the DOM environment for running Rule.js on the server

Latest version **1.1.0** (published 2025-07-17) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2025-07-17 |
| First published | 2013-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 463.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Etler |
| Maintainers | etler |
| Keywords | dom, window, environment, html, browser |

## Links

- npm: https://www.npmjs.com/package/sub
- Repository: git@github.com:etler/sub
- npm.io page: https://npm.io/package/sub

## Dependencies (1)

- [htmlparser2](https://npm.io/package/htmlparser2.md) ~3.9.2

## 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

- 1.1.0 (latest) — 2025-07-17
- 1.0.0 — 2017-03-31
- 0.1.13 — 2017-01-24
- 0.1.12 — 2016-12-13
- 0.1.11 — 2015-04-18
- 0.1.10 — 2015-03-26
- 0.1.8 — 2014-09-06
- 0.1.7 — 2014-07-07
- 0.1.6 — 2014-05-24
- 0.1.5 — 2014-05-19
- 0.1.4 — 2013-08-15
- 0.1.3 — 2013-03-05
- 0.1.2 — 2013-03-02
- 0.1.1 — 2013-03-02
- 0.1.0 — 2013-02-27
- … 2 more at https://npm.io/package/sub/versions

## README

A small DOM subset that emulates just enough to run Rule.js

## License
MIT

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