# elementailor

> Javascript library for creating elements with ease

Latest version **1.0.8** (published 2016-01-22) · UNLICENSED license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2016-01-22 |
| First published | 2016-01-20 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sebastian Robert Karlsson |
| Maintainers | sebastiankarlsson |
| Keywords | element, dom, doms, react, fluid, elements, append |

## Links

- npm: https://www.npmjs.com/package/elementailor
- Repository: https://github.com/sebbekarlsson/ElemenTailor
- Homepage: https://github.com/sebbekarlsson/ElemenTailor#readme
- Issues: https://github.com/sebbekarlsson/ElemenTailor/issues
- npm.io page: https://npm.io/package/elementailor

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2016-01-22
- 1.0.7 — 2016-01-21
- 1.0.6 — 2016-01-21
- 1.0.5 — 2016-01-21
- 1.0.4 — 2016-01-21
- 1.0.3 — 2016-01-21
- 1.0.2 — 2016-01-21
- 1.0.1 — 2016-01-21
- 1.0.0 — 2016-01-20

## README

# ElemenTailor.js
> Create elements with ease

## Using ElemenTailor.js
> First include the script in your HTML document:

        <script type='text/javascript' src='elementailor.js'></script>

> Or if you have installed using npm, do this in your .js file:

        var ElemenTailor = require('elementailor');

> Then you can start using it:

        /* How to use */
        var element = ElemenTailor.create(/* name */, /* attributes */)

        /* Creating an image element with an src attribute */
        var img = ElemenTailor.create('img', { src: '/images/example.jpg' })

        /* Creating a simple div with a span child */
        var div = ElemenTailor.create(
            'div',
            {
                id: 'nice_id',
                class: 'nice_class',
                childs: [
                    ElemenTailor.create('span')
                ]
            }
        )

> The "name" argument is the name of the element you would like to create.
> For example: "div".
>
> The "attributes" argument is simply a dictionary of attributes.
> All keys and values in the dictionary will be applied as tag attributes on
> the element.
>
> There is some special cases though, for example; When the key is 'childs',
> an array of elements is expected and will later be appended to the inner part
> of the element.
>
> ElemenTailor.create() returns an html element.

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