typescript-string-operations
Advanced tools
Comparing version
{ | ||
"name": "typescript-string-operations", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Simple lightweight string operation library for Typescript, works with Angular", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.min.js", |
@@ -55,7 +55,7 @@ [](https://www.npmjs.com/package/typescript-string-operations) | ||
fruit.color = "RED"; | ||
fruit.shippingDate = ""; | ||
fruit.shippingDate = new Date(2018, 1, 1); | ||
fruit.amount = 10000; | ||
String.Format("the {type:U} is {color:L} shipped on {shippingDate:s} with an amount of {amount:n}", fruit); | ||
// output: the APPLE is red shipped on with an amount of 10.000 | ||
// output: the APPLE is red shipped on 2018-01-01 with an amount of 10.000 | ||
@@ -62,0 +62,0 @@ ``` |
36505
0.08%