0.1.0 • Published 9 years ago
replace-string-if v0.1.0
Replace String If
This is a transform stream. If the condition passed evaluates to true, a string replace is run on the stream.
Installation
npm install replace-string-if
Usage
var condition = function () { return true; };
var match = 'expression';
var replacement = 'newexpression';
var replaceStringIf(condition(), match, replacement);
0.1.0
9 years ago