Comparing version 1.4.0 to 1.4.1
@@ -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"; | ||
``` |
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
24327
27
763
35