jsmp-infra-mariia-sychova-wordreplace
v2.0.0
Published
Replace all occurrences of a particular word with another one
Downloads
1
Maintainers
Readme
Wordreplace
Replaces all occurrences of a particular word with another one.
Install
$ npm install wordreplace
Usage
const { wordreplace } = require('wordreplace');
wordreplace('Replace me, replace me, replace me!', 'replace', 'do not touch');
//=> 'Replace me, do not touch me, do not touch me!'