virtual-html
Convert given HTML into Virtual DOM object
Install
$ npm install virtual-html
Usage
Async:
var html = '<div class="foo bar" style="color: red; background: yellow;" data-yo="123">yo</div>'; var virtual =
Sync:
var html = '<div class="foo bar" style="color: red; background: yellow;" data-yo="123">yo</div>'; var virtual = // synchronous interfacevar dom = domtagName// => 'div' domchildren0text// => 'yo' dompropertiesdatasetyo// => 123