js-replace-all

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i js-replace-all

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.14 kB

Total Files

5

Last publish

Collaborators

  • aciobanitei