Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dreamworld/web-util

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/web-util - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

replaceAll.js

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc