html2hs

1.0.3 • Public • Published

html2hs

NPM version Build Status

Parse HTML to hyperscript (for virtual-dom).

var html2hs = require('html2hs');

var hscript = html2hs('<h1>Hello World</h1>');

// hscript = 'h("h1", [ "Hello World" ])'

html2hs also accept an option argument:

{
    // true: pre tags will be parsed like other tags
    pre: false
}

Readme

Keywords

none

Package Sidebar

Install

npm i html2hs

Weekly Downloads

2

Version

1.0.3

License

Apache 2

Last publish

Collaborators

  • samypesse