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);
});
-
Notifications
You must be signed in to change notification settings - Fork 0
cizar/async-string-replace
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Async String.prototype.replace()
Resources
Stars
Watchers
Forks
Packages 0
No packages published