0.3.3 • Published 1 month ago

html-piercer v0.3.3

Weekly downloads
-
License
CC BY-ND
Repository
github
Last release
1 month ago

Usage

<!--get access to $ and $$ globally-->
<script src="//cdn.jsdelivr.net/npm/html-piercer@0.3"></script>
// $ is a shorthand for document.querySelector
// $$ is a shorthand for document.querySelectorAll

// There are additional methods for manipulating elements
$('body').render(`<p>content</p>`); // place/replace html
$('#someId').inject(`<p>Additional content</p>`); // append html
$('#someId').pierce(`<br>`); // prepend html

// All the same methods are supported for $$
0.3.3

1 month ago

0.3.2

1 month ago

0.3.1

1 month ago

0.3.0

1 month ago

0.2.0

1 month ago

0.1.1

1 month ago

0.1.0

2 months ago