objectify-html

0.1.1 • Public • Published

Objectify HTML

Convert HTML strings or nodes to JSON friendly JavaScript plain objects and back again.

.toNode

var node = objectify.toNode( obj );

.fromNode

var obj = objectify.fromNode( node );

.toHtml

var html = objectify.toHtml( obj );

.fromHtml

var obj = objectify.fromHtml( '<h1>Hello</h1>' );

Dependents (0)

Package Sidebar

Install

npm i objectify-html

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • trevorparscal