async-string-replace
v1.1.0
Published
Async String.prototype.replace()
Downloads
5
Readme
Async String.prototype.replace()
var asyncReplace = require('async-string-replace');
asyncReplace('Hello World', /world/i, function (matches, replace) {
setTimeout(function () {
replace(null, 'Node');
}, 1000);
}, function (err, result) {
console.log(result);
});