{"name":"@putout/plugin-convert-template-to-string","version":"2.0.0","type":"commonjs","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://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/test":"^9.0.0","c8":"^9.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0-0","eslint-plugin-putout":"^22.0.0","madrun":"^10.0.0"},"peerDependencies":{"putout":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-template-to-string@2.0.0","gitHead":"afafaded7c279f47fbff7417051596a3577403a3","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.11.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-+qlmSL5Clg51KFI+o9oQfeQxKkKsx9c2JuPjLsuejCn8rp9wFLh9f/7SzoL7PNaBwrG0atcQUlqN0a3W/aXU3A==","shasum":"f154a6cc6b58be0851ef3d0d490a3de5fb33e65d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-template-to-string/download/@putout/plugin-convert-template-to-string-2.0.0.tgz","fileCount":4,"unpackedSize":3940,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2Ev4cKx3s+KxN68deOLLphYNJ0PG8xyLkqGjxGyMS2gIgW2FNJFA00aLKazRmW12ACNn0oYrfNkIkB2U2mL2d3W4="}],"size":1999,"noattachment":false,"key":"/@putout/plugin-convert-template-to-string/-/@putout/plugin-convert-template-to-string-2.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","tmp":"tmp/plugin-convert-template-to-string_2.0.0_1712432297249_0.5152011305597226"},"_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":1712432297441,"_cnpm_publish_time":1712432297441,"dist-tags":{"latest":"3.0.0"}}