Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

formatted-string

IAmAnubhavSaini15MIT3.0.0TypeScript support: included

Gives you a formatted string to print based on a given key-value pair/object.

formatted-string, string, format, javascript

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