# appendjs

> Using npm:

Latest version **1.1.0** (published 2019-12-12) · ISC license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2019-12-12 |
| First published | 2019-12-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | ashishmalikar |
| Keywords | dom, JavascriptDOM, DomElementCreation, CreateElementWithJavascript |

## Links

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

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) ^1.9.1

## 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.1.0 (latest) — 2019-12-12
- 1.0.4 — 2019-12-12
- 1.0.2 — 2019-12-12
- 1.0.1 — 2019-12-12
- 1.0.0 — 2019-12-12

## README

##Installing
Using npm:

```
$ npm install axios
```

## Example

```html
<div id="pageContainer"></div>
```

```javascript

<script>
var pageContainer = append('#pageContainer', {
            name: 'div',
            attributes: {
                'class': 'ui segment'
            },
            style: {
                'backgroundColor': 'red',
                'height': '10vh',
                'width': '100%',
                'color': 'white',
                border: 'dotted white 1px'
            },
            on:{
                'click': function() {
                    console.log('clicked');
                },
                'dbclick': function () {
                    console.log('dbclicked');
                },
                'mouseover': function() {
                    console.log('mouse Over');
                }
            },
            childs: [
                {
                    name: 'h2',
                    id: 'mainUiSeg',
                    attributes: {
                        class: 'ui header',
                    },
                    innerHTML: 'Segment Header',
                    style: {
                        color: 'white'
                    }
                },
                {
                    name: 'div',
                    attributes: {
                        class: "content"
                    },
                    childs: [
                        {
                            name: 'home-page-dashbord'
                        }
                    ]
                    
                }
            ]
        });
        
        
        var btn = append(pageContainer, {
            name: 'button',
            attributes: {
                'class': 'ui button'
            },
            on: {
                click: function() {
                    alert('Button clicked');
                }
            },
            innerHTML: 'Click Me'
        });
</script>
```

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