1.0.6 • Published 3 years ago

kc-strrepl v1.0.6

Weekly downloads
7
License
ISC
Repository
github
Last release
3 years ago

STRRepl

js Replace all in string.

Install

npm install kc-strrepl

Use

var strrepl = require('kc-strrepl');
var srch = 'A'; // Search
var repl = 'B'; // Replace
var orig = 'A hello AA world A'; // Original string
var flag = 'gim'; // Regex flags (default: gim)
var str = strrepl(srch, repl, orig, flag);
console.log(str);
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago