{"_id":"@putout/plugin-convert-template-to-string","_rev":"4-415c5ef3b445860d72c641b8e7367889","name":"@putout/plugin-convert-template-to-string","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@putout/plugin-convert-template-to-string","version":"1.0.0","keywords":["putout","putout-plugin","plugin","remove","useless","template"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-convert-template-to-string@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"4f00d13b762c775903ccbfcb941b8b8ad684b2cb","tarball":"https://registry.npmjs.org/@putout/plugin-convert-template-to-string/-/plugin-convert-template-to-string-1.0.0.tgz","fileCount":4,"integrity":"sha512-Oh/MN4Irc6b3qafOSh3VQ+qw/DVZq2FSKt200XKpJw1HXcUk8RpPxNnG3xTpn2vTe/qK2e4VDtlLgdxUNo0onA==","signatures":[{"sig":"MEUCIQCjialTV+sCKjBWpaUQl/rXqZW1LfRTijfgr6cFYmhAWAIgPx0Gexq5YIAOXa325CiH8dBCPjbTZLsdJ/5oNGzZKAY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeS+NMCRA9TVsSAnZWagAAxBMP/1vXlDVpYQkKdW4CdHdT\nozgNgdnGp/mmzIJBjLlP4SG5TtH+PEpHIIEIrtGQLNC9aC0TP02FmtVxLW6Z\n4ebhy0LP6c8F0vsj6yAlJVLIkRBYoa0v8FRCreixIQHYn2ZoPUviaBkFBvdx\nw8tMdKmmfy9ERzVPxKv3N1fr3EU3nDAYyeef4WM8qYqtXEqxFSFNY6dCQ4Wn\nnHWnM6ldBpg5i6kIig73+PBMrJPk63bRYLibHhlL8kNUvqmSbS8hcMg4riFy\nryG4frC9Qp/wfiY+vPniYzjbhwvN6aab1BIJ0heCE6x8IML2lVBWrknI0tjQ\nGNFD2w1ecbTKDE/5L/bLZqqYr/6/xPJUlZ44DD7FrRP8cj7Z+XPkLXaiotuS\nRROM+R6DCdqirxClylc1ab/U5TC1ZqxZvcXvpTEKZIVT3L+A3LGpBR34p5Kr\nsr+7jSy91LxRuFrlgLiRkdyL+5Oc1xHOulIjh8n4qYACwKZ3RriOt63ej7sa\n2catqPky4uI5GIEAp8s80ajbVdt1CiFCfRS9TslG2IE+qR/fr7pkH/ZTxpE5\ncOaYbFV+zch25az5LyCA4c2pEdQ1Zy639i80WNTUpqrPpEg3MKqt4DvtuYXd\nXw32fLzEHuvXeQaPGJRhYrHRLKUv1O4Urrwojv/hI76Ts5w40bqnh7pv4tyT\ncMBR\r\n=JohV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/convert-template-to-string.js","engines":{"node":">=8.3.0"},"release":false,"scripts":{"lint":"madrun lint","test":"madrun test","coverage":"madrun coverage","fix:lint":"madrun fix:lint"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"6.12.1","description":"putout plugin adds ability to find and remove useless template string","directories":{},"_nodeVersion":"13.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.0.0","eslint":"^6.2.0","madrun":"^5.0.0","coveralls":"^3.0.0","supertape":"^1.0.3","@putout/test":"^1.16.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^3.0.0"},"peerDependencies":{"putout":">=7"},"_npmOperationalInternal":{"tmp":"tmp/plugin-convert-template-to-string_1.0.0_1582031691765_0.09489982579342415","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-convert-template-to-string","version":"2.0.0","keywords":["putout","putout-plugin","plugin","remove","useless","template"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-convert-template-to-string@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-template-to-string#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"f154a6cc6b58be0851ef3d0d490a3de5fb33e65d","tarball":"https://registry.npmjs.org/@putout/plugin-convert-template-to-string/-/plugin-convert-template-to-string-2.0.0.tgz","fileCount":4,"integrity":"sha512-+qlmSL5Clg51KFI+o9oQfeQxKkKsx9c2JuPjLsuejCn8rp9wFLh9f/7SzoL7PNaBwrG0atcQUlqN0a3W/aXU3A==","signatures":[{"sig":"MEUCIQC2Ev4cKx3s+KxN68deOLLphYNJ0PG8xyLkqGjxGyMS2gIgW2FNJFA00aLKazRmW12ACNn0oYrfNkIkB2U2mL2d3W4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3940},"main":"lib/convert-template-to-string.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"afafaded7c279f47fbff7417051596a3577403a3","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.5.0","description":"🐊Putout plugin adds ability to find and remove useless template string","directories":{},"_nodeVersion":"20.11.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","eslint":"^9.0.0","madrun":"^10.0.0","@putout/test":"^9.0.0","eslint-plugin-n":"^17.0.0-0","eslint-plugin-putout":"^22.0.0"},"peerDependencies":{"putout":">=35"},"_npmOperationalInternal":{"tmp":"tmp/plugin-convert-template-to-string_2.0.0_1712432297249_0.5152011305597226","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@putout/plugin-convert-template-to-string","version":"3.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove useless template string","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-template-to-string#readme","main":"lib/convert-template-to-string.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","remove","useless","template"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-template-to-string@3.0.0","gitHead":"f080e973d7c15f45bfa005c3b06565ca06c3f9c0","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"23.11.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-D2B4Xp1jv4YHM2ELK5CPyfhLnJatY5U8fzX+bjMTvnF4gj1cFTTWhkEMKdTvayq5pwIr5f9/gRgGTBdeig3E4w==","shasum":"5b3e6a58f2e88e470eb1eb482df6b1d8737cf3c3","tarball":"https://registry.npmjs.org/@putout/plugin-convert-template-to-string/-/plugin-convert-template-to-string-3.0.0.tgz","fileCount":4,"unpackedSize":3960,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCO3QuLlUteyNqgdlM4xfwh3778WMxrYybog/WTTtClzwIhAP/2ds8xRCyR9XGxBNc7oyUMwSBbQwNDQy4uyttOt8qz"}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-convert-template-to-string_3.0.0_1746449069084_0.21139129147904656"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-18T13:14:51.585Z","modified":"2025-05-05T12:44:29.454Z","1.0.0":"2020-02-18T13:14:51.921Z","2.0.0":"2024-04-06T19:38:17.441Z","3.0.0":"2025-05-05T12:44:29.266Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-template-to-string#readme","keywords":["putout","putout-plugin","plugin","remove","useless","template"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to find and remove useless template string","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-convert-template-to-string [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-template-to-string.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-template-to-string\"npm\"\n\n> - [**Template literals**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) are literals delimited with backticks (`), allowing embedded expressions called substitutions.\n> - The [**`String`**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) object is used to represent and manipulate a sequence of characters.\n>\n> (c) MDN\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and convert **Template Literals** to calling of `String` constructor.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-template-to-string\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-template-to-string\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst s = `${a + b}`;\n```\n\n## ✅ Example of correct code\n\n```js\nconst s = String(a + b);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}