stringplaceholder

1.2.1 • Public • Published

stringFormat

A small function that replicates the functionality of c#'s string.Format function

Installation

npm install stringplaceholder --save

Usage

var strObj = require('stringplaceholder/stringplaceholder.js');

var myString = "Hello there, my name is {0}, Good {1}.";

console.log(strObj.replacePlaceholder(myString,'Russell', 'morning'));

Tests

grunt test

Release History

  • 0.1.0 Initial release

Package Sidebar

Install

npm i stringplaceholder

Weekly Downloads

2

Version

1.2.1

License

ISC

Last publish

Collaborators

  • teamholmes