1.0.2 • Published 11 years ago

string-substitute v1.0.2

Weekly downloads
11
License
-
Repository
github
Last release
11 years ago

node-string-substitute

Simple string util which substitutes {n} tokens within the specified string

###Usage###

var substitute = require('string-substitute');
var address = substitute('{0}, my name is {1}', 'Hello', 'Bruce Wayne');
console.log(address); //Hello, my name is Bruce Wayne

###Install###

npm install string-substitute

###Test###

mocha test