Nuclear Powered Mushroom
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    unpack-htmlpublic

    unpack-html

    Unpack html source into elements

    Example

    Uses unpack-element and fragment.Element to construct a DOM element from the source string and then unpack that DOM element into an object containing elements

    var html = require("unpack-html")
        , source = "<div>hello <span id='thing'>world</span></div>"
     
    var elements = html(source)
     
    elements.root; // that div 
    elements.thing; // that span 

    Installation

    npm install unpack-html

    Contributors

    • Raynos

    MIT Licenced

    Keywords

    none

    install

    npm i unpack-html

    Downloadslast 7 days

    0

    version

    2.0.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar