0.0.1 • Published 8 years ago

@orange-lion/dom-parser v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

dom-parser

this package is dom parse from string. Simple is best!

Installation

$ npm i --save @orange-lion/dom-parser

Usage

const toHTML = require('@orange-lion/dom-parser');

const html = toHTML(`
  <div class='hoge'>
    <p>Test</p>
  </div>
`);
//=> HTMLElement
import toHTML from '@orange-lion/dom-parser';

const html = toHTML(`
  <div class='hoge'>
    <p>Test</p>
  </div>
`);
//=> HTMLElement
0.0.1

8 years ago