string-template-format-tostring
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

String Template Format: toString

String template literal tag that converts any value that has .toString() method to strings

Usage

import str from 'string-template-format-tostring'
console.log(str`string: ${'abc'}; number: ${123}; function: ${Function};`)

should print:

string: abc; number: 123; function: function Function() { [native code] };

License

MIT © Hoàng Văn Khải

Package Sidebar

Install

npm i string-template-format-tostring

Weekly Downloads

1

Version

0.1.7

License

MIT

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • khai96_