{"name":"@putout/plugin-apply-template-literals","version":"2.1.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://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":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^17.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6f7ee335f1eab17708e69c4747d9d2f977b82a90","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-template-literals@2.1.0","_nodeVersion":"20.1.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-SQFX3uYHhuc7LV6Cob7syD9KpKzxCsKJNjjR4xJxaQ3NbCQ9j6ozGjnjo4bgEsv6ljYWXLFVFh6/H5xiaGB15w==","shasum":"c925ea3f4765efe2a6b6f748c9303ac3539850bc","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-template-literals/download/@putout/plugin-apply-template-literals-2.1.0.tgz","fileCount":4,"unpackedSize":4910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcfDV23ym8qn0UtN15TojfCE8h51FkF6jecRmhVCIDVgIhALBJQIuradLUhCQL69dDoRNiaYavDuynLFd2IgNaToOD"}],"size":2376,"noattachment":false,"key":"/@putout/plugin-apply-template-literals/-/@putout/plugin-apply-template-literals-2.1.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-apply-template-literals_2.1.0_1683901846304_0.3113966246927171"},"_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":1683901846454,"_cnpm_publish_time":1683901846454,"dist-tags":{"latest":"5.0.0"}}