# xelem

> Make HTML elements more easily in JS

Latest version **0.1.8** (published 2018-06-05) · MIT license · 0 weekly downloads

## Install

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

Provides the command `xelem`.

## 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.1.8 |
| Published | 2018-06-05 |
| First published | 2018-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | roecrew |
| Maintainers | roecrew |
| Keywords | html, js, javascript |

## Links

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.8 (latest) — 2018-06-05
- 0.1.7 — 2018-05-14
- 0.1.6 — 2018-05-04
- 0.1.5 — 2018-05-04
- 0.1.4 — 2018-05-04
- 0.1.3 — 2018-05-04
- 0.1.2 — 2018-05-04
- 0.1.1 — 2018-05-04
- 0.1.0 — 2018-05-04

## README

# xelem
Make HTML elements more easily in JS

Would you rather do this...
````js
let myClass = 'hello';
let elem = document.createElement('div');
elem.setAttribute('class', myClass);
elem.setAttribute('id', 'world');
elem.innerHTML = 'Hello World!';
document.querySelector('.st0').appendChild(elem);
````

Or this?

````js
let myClass = 'hello';
document.querySelector('.st0').appendChild({{
  <div class="${myClass}" id="world">
    Hello World!
  </div>
}});
````

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