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

0.1.7 • Public • Published

String Template Format: Base

Create string template tag that transform values into strings

Usage

import tag from 'string-template-format-base'
const myTag = tag(value => `[${typeof value} ${value}]`)
console.log(myTag`${123}${'abc'}${{ abc: 123 }}${[0, 1, 2]}`)

should print:

[number 123]; [string abc]; [object [Object object]]; [array 0,1,2]

License

MIT © Hoàng Văn Khải

/string-template-format-base/

    Package Sidebar

    Install

    npm i string-template-format-base

    Weekly Downloads

    4

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    3.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • khai96_