Skip to content

wyyz514/lumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Lumber

Converts a DOM tree to an object

Usage

import Lumber from '/path/to/Lumber';

const parsed = Lumber.parse(`[HTML template]`);

Issues

Yes. WIP but will work for basic HTML elements with attributes etc. Exception occurs with attribute values that have not been adequately considered ie JSON strings and special symbols.

  • HTML attribute considerations: looser regular expression required?
  • Whitespace between element nodes breaks parser...needs experimentation...replace >\s< with >< ?

About

Convert DOM trees to usable objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published