{"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":"http://registry-npm.ywwl.com/@putout/plugin-convert-template-to-string/download/@putout/plugin-convert-template-to-string-3.0.0.tgz","fileCount":4,"unpackedSize":3960,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCO3QuLlUteyNqgdlM4xfwh3778WMxrYybog/WTTtClzwIhAP/2ds8xRCyR9XGxBNc7oyUMwSBbQwNDQy4uyttOt8qz"}],"size":1998,"noattachment":false,"key":"/@putout/plugin-convert-template-to-string/-/@putout/plugin-convert-template-to-string-3.0.0.tgz"},"_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,"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","publish_time":1746449069266,"_cnpm_publish_time":1746449069266,"dist-tags":{"latest":"3.0.0"}}