# create-and-append-element

> Create element what you want and where you want

Latest version **0.1.6** (published 2023-06-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-and-append-element
pnpm add create-and-append-element
yarn add create-and-append-element
bun add create-and-append-element
```

## 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.6 |
| Published | 2023-06-16 |
| First published | 2023-05-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Simon |
| Maintainers | simonkarapetyan |
| Keywords | create, append, element, class, make, attribute, ts, js, dom, javascript, typescript, div, html, css |

## Links

- npm: https://www.npmjs.com/package/create-and-append-element
- Repository: https://github.com/simonK605/create-and-append-element
- Homepage: https://github.com/simonK605/create-and-append-element#readme
- Issues: https://github.com/simonK605/create-and-append-element/issues
- npm.io page: https://npm.io/package/create-and-append-element

## 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.6 (latest) — 2023-06-16
- 0.1.5 — 2023-05-28
- 0.1.4 — 2023-05-26
- 0.1.3 — 2023-05-26
- 0.1.1 — 2023-05-25
- 0.1.0 — 2023-05-25

## README

# create-and-append-element
> This package allows you to create and place any HTML tag of your choice with ease.

This is my first package, hope it will be helpful. :)

## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install create-and-append-element
```

## Usage
```js
import createAndAppendElement from 'create-and-append-element';

// createAndAppendElement('tagName', whereToAppend, 'class', { attribute: value })

const link = createAndAppendElement('a', document.body, 'link', {
    href: 'https://url.com',
    // attributes...
});

const img = createAndAppendElement('img', link, 'image', {
    src: 'https://image.png',
    wdth: 500
});
```

## About
<details>
<summary><strong>Contributing</strong></summary>
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/simonK605/create-and-append-element/issues/new).
</details>

<br>

### Author
**Simon Karapetyan**
* [LinkedIn Profile](https://www.linkedin.com/in/simon-karapetyan-b048a61b5/)
* [GitHub Profile](https://github.com/simonK605)

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