templatize-string

An additive string to ES6 template string converter.

Maxobat

117

0

0.2.2

MIT

GitHub

Templatize

Convert additive strings to ES6 template strings.

Example

    'this ' + 'is ' + 'a ' + 'string. ' + testVariable + (testVariable ? 'foo' : 'bar')

Compiles to

    `this is a string. ${testVariable}${(testVariable ? 'foo' : 'bar')}`

Activation Methods

Keyboard Shortcut

cmd-alt-shift-T

Context Menu

"ES6 Template String"