string-substitute

1.0.2 • Public • Published

node-string-substitute

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

Usage###

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

Install###

npm install string-substitute

Test###

mocha test

Readme

Keywords

none

Package Sidebar

Install

npm i string-substitute

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • krzysztof-o