1.0.4 • Published 4 years ago

string-format-ts v1.0.4

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

string-format-ts

A Typescript formatting library inspired by c# string.format(\"My {0} string\", \"Hello World\")",

Installation

$ npm i string-format-ts

for saving into package.json

$ npm i string-format-ts --save

Using

import 'node_modules/string-format-ts';

...

let myString = "My {0} {1} string";
myString = myString.format("first", "test");

console.debug(myString);

/*
    output:
    My first test string
*/