1.0.3 • Published 3 years ago
change-word v1.0.3
hello, you will find basic commands in package.json
for the function to work, you should import changeWordInText function into the file you need.
for example:
let changeWordInText = require("change-word");
//change word in text--- let test_01 = changeWordInText("some word bla bla bla", "some", "ttt");
result//=> "ttt word"
//remove word--- let test_02 = changeWordInText("some word bla bla bla", "some");
result//=>"word bla bla bla"