Node.js examples for String:Parse
Is String supplant
String.prototype.supplant = function (o) { return this.replace(/\{([^{}]*)\}/g, function (a, b) { var r = o[b]; return typeof r === 'string' || typeof r === 'number' ? r : a; });//from w ww .j av a 2s .co m };