@dreamworld/web-util
Advanced tools
Comparing version 1.5.1 to 1.6.0
{ | ||
"name": "@dreamworld/web-util", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ # web-util | ||
## htmlTrim | ||
- Removes empty nodes/html from the both side of a given html template or String. | ||
- Removes empty nodes/html from the both side of a given html template or String. | ||
@@ -11,3 +11,3 @@ #### Examples | ||
###### Example-1: Remove all begining empty nodes | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -26,3 +26,3 @@ <div></div> | ||
###### Example-2: Remove all end empty nodes | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -42,3 +42,3 @@ <div>hello</div> | ||
###### Example-3: Trim start of first non empty nodes | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -57,3 +57,3 @@ <div></div> | ||
###### Example-4: Trim end of last non empty nodes | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -72,3 +72,3 @@ <div>hello </div> | ||
###### Example-5: Remove all empty nodes from begining and end also start trim first non empty nodes and end trim last non empty nodes. | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -101,3 +101,3 @@ <div></div> | ||
###### Example-6 nested div with text nodes | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -136,3 +136,3 @@ <div></div> | ||
###### Example-7 First node as text node | ||
- **Input:** | ||
- **Input:** | ||
``` | ||
@@ -167,4 +167,7 @@ hello1 | ||
## openVirtualKeyboard | ||
- Opens virtual keyboard in touch devices | ||
- Opens virtual keyboard in touch devices | ||
## replaceAll | ||
- There is no support of replaceAll method in old browsers, so it is its wrapper method which if browser's replaceAll method is available, it will use it, otherwise it will replace with custom logic using lodash's replace method. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25578
12
528
165