# tree-ss

> HTML DOM parser in server side

Latest version **0.0.8** (published 2020-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install tree-ss
pnpm add tree-ss
yarn add tree-ss
bun add tree-ss
```

## 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 | 2020-12-01 |
| First published | 2020-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pablo Rosique Vidal |
| Maintainers | pableke |
| Keywords | DOM, HTML, server, render |

## Links

- npm: https://www.npmjs.com/package/tree-ss
- Repository: https://github.com/pableke/trees
- Homepage: https://github.com/pableke/trees#readme
- Issues: https://github.com/pableke/trees/issues
- npm.io page: https://npm.io/package/tree-ss

## 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) — 2020-12-01
- 0.0.7 — 2020-11-10
- 0.0.5 — 2020-11-09
- 0.0.4 — 2020-11-09
- 0.0.3 — 2020-10-29
- 0.0.2 — 2020-10-26
- 0.0.1 — 2020-10-26

## README

# Tree-Ss

Build an HTML DOM in server side and response it to client.

## How It Works

1. Build a tree DOM on server to render HTML.
2. Send response procesed to client.

## Usage

### JS Applications

An express alternative framework

<details><summary><b>Show instructions</b></summary>

1. Install by npm:

    ```
    $ npm install tree-ss
    ```

</details>

## Config

Tree-Ss cache index template, charset and static file age

1. trees.start():

	```
	trees.start({
		templateIndex: __dirname + "/views/index.html", //template index
		staticage: 1000 * 60 * 60 * 24 * 7, //default = 7days
		charset: "utf-8"
	});
	```

2. trees.init(req, res):

	```
	trees.init(req, res).render();
	```

### test

```
npm test
```

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