0.0.19 • Published 3 years ago
@acot/html-pickup v0.0.19
@acot/html-pickup
Use the CSS Selector to pick up the elements from the HTML string.
Installation
Install via npm:
$ npm install --save @acot/html-pickup
Usage
T.B.A
import { pickup } from '@acot/html-pickup';
const html = `
<html>
<body>
<header>
<h1>Title</h1>
</header>
<main id="container">
<h2>Sub title</h2>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</main>
</body>
</html>
`;
const el = pickup(html, '#container');
console.log(el);
// "<main id="container"><h2>Sub title</h2><ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul></main>"
0.0.19
3 years ago
0.0.16
3 years ago
0.0.17
3 years ago
0.0.18
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.5-canary.0
4 years ago
0.0.5
4 years ago
0.0.4-canary.0
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.3-canary.0
4 years ago
0.0.2
5 years ago
0.0.2-canary.1
5 years ago
0.0.2-canary.0
5 years ago
0.0.1
5 years ago