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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.15latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.15
1.0.10
1.0.00

Package Sidebar

Install

npm i stringplaceholder

Weekly Downloads

5

Version

1.2.1

License

ISC

Last publish

Collaborators

  • teamholmes