🐊Putout plugin adds ability to find and remove useless template string
npm install @putout/plugin-convert-template-to-string[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-template-to-string.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-template-to-string"npm"
> - Template literals are literals delimited with backticks (), allowing embedded expressions called substitutions.String
> - The object is used to represent and manipulate a sequence of characters.
>
> (c) MDN
🐊Putout plugin adds ability to find and convert Template Literals to calling of String constructor.
``
npm i @putout/plugin-convert-template-to-string
`json`
{
"rules": {
"convert-template-to-string": "on"
}
}
`js${a + b}
const s = ;`
`js``
const s = String(a + b);
MIT