formatted-string
v3.0.0
Published
Gives you a formatted string to print based on a given key-value pair/object.
Downloads
10
Readme
formatted-string
Formatting a string based upon the object passed.
Features
- uses typescript
usage
var str = formatted("{a} is {b}; {b} is {a}", {a:'red', b: 'blue'});
console.log(str);
// output
"red is blue; blue is red"
License
MIT © Anubhav Saini 2016-2022