{"name":"@putout/plugin-apply-template-literals","version":"4.2.0","type":"commonjs","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/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^24.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=38"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-apply-template-literals@4.2.0","gitHead":"c888537cb93cf8ee26d42d42dbd23af4dcdad555","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.13.1","_npmVersion":"10.9.0","dist":{"integrity":"sha512-wqyMnU+4V6DBf4dSwFq4X1BHNhTlons61S+u3JNjj8A8uHvjz4MC2zeet5FxFZytq9DkomN6vt1jwuuS3V6E8g==","shasum":"d8de5cdcc25fce695eb70bdbcb1aaaac27f1e47d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-template-literals/download/@putout/plugin-apply-template-literals-4.2.0.tgz","fileCount":4,"unpackedSize":5371,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCEeSUCVoOrSqFnE6Xz6MjMuu5+jWgeN7tTHicDFOlN5gIhANlwJ24kYr3feiVn0QqKIY3UT21IECrstO91NsfPZXNV"}],"size":2508,"noattachment":false,"key":"/@putout/plugin-apply-template-literals/-/@putout/plugin-apply-template-literals-4.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-apply-template-literals_4.2.0_1739268787587_0.3959369890743414"},"_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":1739268787797,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1739268787797,"dist-tags":{"latest":"5.0.0"}}