Skip to content

LookLikeAPro/virtual-hyperscript-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Hyperscript Parser

Parses raw html to a virtual hyperscript structure for DOM diffing.

Install

npm install virtual-hyperscript-parser

Usage

var hyperscriptParser = require("../index");

//Parse a string
var content = "<div>...</div>";
console.log(hyperscriptParser(content));

//Parse DOM object directly
var content = document.getElementById("content");
console.log(hyperscriptParser(content));

About

Parses raw html to a virtual hyperscript structure for DOM diffing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published