# tswlib

> html rendering library

Latest version **1.4.0** (published 2021-08-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2021-08-04 |
| First published | 2020-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 82.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | fantaclaus |
| Maintainers | fantaclaus |

## Links

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

## Recent versions

- 1.4.0 (latest) — 2021-08-04
- 1.3.1 — 2021-07-05
- 1.2.0 — 2020-12-22
- 1.1.1 — 2020-12-22
- 1.1.0 — 2020-12-22
- 1.0.2 — 2020-11-17
- 1.0.1 — 2020-11-17
- 1.0.0 — 2020-11-12

## README

Overview
========

This library can be used to create client-side web applications.
All rendering of HTML is done entirely in the Typescript code.
The library has no dependencies.

Example
========

This is an example of a very simple script which displays a list of text items:

```typescript
const items = ["item 1", "item 2", "item 3"];

const content =
	tsw.html.ul().children([
		items.map(item => tsw.html.li().children(item)),
	]);

tsw.setContent(document.body, content);
```

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