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

gutil

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gutil - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

lib/util/replace2.js

4

lib/gutil.js

@@ -20,2 +20,3 @@ var each = require('./util/each');

var string = require('./util/string');
var replace2 = require('./util/replace2');

@@ -40,5 +41,6 @@ var genjsutil = {

sort: sort,
string: string
string: string,
replace2: replace2
};
module.exports=genjsutil;
{
"name": "gutil",
"description": "GUtil",
"version": "1.4.0",
"version": "1.4.1",
"private": false,

@@ -6,0 +6,0 @@ "licenses": [

@@ -24,1 +24,13 @@ gutil

- string : utils functions for String
- replace2 : scan only one time the text and replace many txt occurences during this scan
sample :
```js
// given
var txt = "simple text";
var oldValues = ["simple","text"];
var newValues = ["hello","world"];
// when
var result = replace2(txt, oldValues, newValues);
// txt == "hello world";
```
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