string-template-format-tostring
v0.1.7
Published
String template literal tag that converts any value that has .toString() method to strings
Downloads
3
Readme
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] };