string-format-ts
v1.0.4
Published
A Typescript formatting library inspired by c# string.format("My {0} string", "Hello World")
Downloads
1,204
Readme
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
*/