{"name":"@putout/plugin-apply-template-literals","version":"5.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply template literals","homepage":"http://github.com/coderaiser/putout/tree/master/packages/plugin-apply-template-literals#readme","main":"lib/apply-template-literals.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","putout-plugin-apply","plugin","template-literals"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-apply-template-literals@5.0.0","gitHead":"527ebe466e07ff811e2c5a6dec669a698ffca6e9","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.5.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-ogg5llZ7SyJrJi0MM+TPGpOkneW3PVgu/T3Rqab7WMW1VJFFQIoA3Y7YEpTECnYnf/mXyrH6Pt7l8G6RufVJVg==","shasum":"183baf135087593f8c2c229a345bebaa40a35c42","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-template-literals/download/@putout/plugin-apply-template-literals-5.0.0.tgz","fileCount":4,"unpackedSize":5367,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDK3pLs2hquCbuwLiXChWcfkJ239WWd1TTMpxFUpWmA0gIhAIJmB7J6+563UuIeCJGlU7ebJc+Zj28BLD0xVErxuapj"}],"size":2504,"noattachment":false,"key":"/@putout/plugin-apply-template-literals/-/@putout/plugin-apply-template-literals-5.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-apply-template-literals_5.0.0_1769626191909_0.604168493547971"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-template-literals [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-template-literals.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-template-literals \"npm\"\n\n> Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates.\n> Template literals are sometimes informally called template strings, because they are used most commonly for string interpolation (to create strings by doing substitution of placeholders\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply `template literals`. Check out in [🐊**Putout Editor**](https://putout.cloudcmd.io/#/gist/a3943037348a9f5ff100a972f8e83d9f/718a8997a89790e7fa507114dc1f4984637e92d4).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-template-literals\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-template-literals\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst line = '(\"' + name + '\")';\n```\n\n## ✅ Example of correct code\n\n```js\nconst line = `(\"${name}\")`;\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n🐊 **Putout** | [`apply-template-literals`](https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-template-literals#readme) | ✅\n⏣ **ESLint** | [`prefer-template`](https://eslint.org/docs/latest/rules/prefer-template) | ✅\n\n## License\n\nMIT\n","publish_time":1769626192063,"_cnpm_publish_time":1769626192063,"dist-tags":{"latest":"5.0.0"}}