1.1.0 • Published 8 years ago

async-string-replace v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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);
});
1.1.0

8 years ago

1.0.0

8 years ago