Replace all instances in a JavaScript string
npm install replaceallReplace all instances in a JavaScript string.
```
npm install replaceall
To then include replaceall in your node app:
``
var replaceall = require("replaceall");
`js`
var result = replaceall("instances of this", "with this string", "in this string");
`js
var original = "hello world goodbye world";
replaceall("world", "everyone", original);
// "hello everyone goodbye everyone"
replaceall("l", "z", original);
// "hezzo worzd goodbye worzd"
``