xom
Build DOM trees by misusing Proxy!
Features
- Dynamic wrapper for document.createElement and document.createElementNS.
- Use HTML or JavaScript attribute names.
- Automatically wrap other arguments in document.createTextNode.
Install
npm install --save xom
Usage
Basic package usage:
const div span b i = dom document
Customize Xom:
{}const x = MyXom document