We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c5c524 commit f462fa2Copy full SHA for f462fa2
README.md
@@ -1,2 +1,34 @@
1
# dom-helpers
2
+
3
Helper functions for faster DOM scripting
4
5
+## Install
6
7
+```
8
+yarn add @three11/dom-helpers
9
10
11
+or
12
13
14
+npm i @three11/dom-helpers
15
16
17
+## Usage
18
19
20
+import * as helpers from '@three11/dom-helpers';
21
22
23
24
25
+Import each function separately.
26
27
+See functions list below.
28
29
+## Functions
30
31
+* `byID` - retrieves an element by ID
32
+* `single` - retrieves an element by a given valid css selector
33
+* `multi` - retrieves a collection of elements and normalizes the return value
34
+* `addListener` - attaches an event listener to element
0 commit comments