Skip to content

aciobanitei/js-replace-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-replace-all

Function for replace all ocurence of a string for NodeJS versions older than 15

Usage

The replaceall function takes 3 arguments, one for the string in which the substitutions are made, one with the substring to be replaced and one with the substring that will replace the searched substring.

const replaceall = require("js-replace-all");
replaceall.replaceall("Test abc test test abc test test test abc test test abc","abc","");
  // Output: Test  test test  test test test  test test 
const diacritics = require("js-replace-all");
diacritics.traditional("123/123/123/123/123", "/", "-");
  // Output: 123-123-123-123-123

About

Function for replace all ocurence of a string for NodeJS versions older than 15

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published