0.1.0 • Published 6 years ago

dohtml v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

dohtml

Simple utility to create HTML element by a string

Installation

Node.js

npm install dohtml --save

Example

const dom = require('dohtml');

const myElement = dom.create('<my-component></my-component>');

console.log(myElement);

API

dom : Object

dohtml

Kind: global variable

dom.create(str) ⇒ Element | Node | null

Create DOM element

Kind: static method of dom

dom.isValidNode(el) ⇒ Boolean

Check if is a valid Node

Kind: static method of dom

dom.render(target, els) ⇒ Element | Node | Error

Append multiple elements into target element

Kind: static method of dom

Changelog

You can view the changelog here

License

dohtml is open-sourced software licensed under the MIT license

Author

Fabio Ricali

0.1.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.9

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago