formatted-string
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i formatted-string

Weekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

14.5 kB

Total Files

16

Last publish

Collaborators

  • iamanubhavsaini
  • git.faf
  • anusaini