{"name":"@putout/plugin-apply-template-literals","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 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":"0bf89d3f5e301d2e1471fbc20d1f78a0ed8cf5e1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-template-literals@2.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-/INzcHM6Vs+F7GvdS3bwlXE3PlbXNESDh0kxFP7A1I7H5CnSKbRyBOrQ/mfGaask/jgjdZp5j4UoQHBsy8Q3wA==","shasum":"5b07f9932db612215abd5c2d9a3112659c87e725","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-template-literals/download/@putout/plugin-apply-template-literals-2.0.0.tgz","fileCount":4,"unpackedSize":4844,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO61CIyOeFKehwganGqcFEhUti3rr3Dn31mEPmnPndMgIhAOu3fvDYtBdy+zVONzSDqs3zUZRP7geh1AdNW336aVlU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUM/6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQ1Q/9HLPPRpqyGAgFymRqiwBlmhuk5+tTAk5k8VZiwFVwpd9zvnuE\r\nakGjfjNkIzojBGTAkFXrvrvGppQm2wvE4wG6ppZl18isqHeb0uit0dPW80Vn\r\ncI6YZlJoasybH6iaUD9tlRZqu4bXze0/IKDCyLMWxgF1/h1eKwo6Xh+UNvss\r\nlKJT0cxSr9BB81XIEAS0RixJkjIqjCKBz6Pj/ViW1ffWGyHPHd151iWUDDI2\r\nu0JxIkdiLcs8/q7hvtXg/mekrEHDqapRshsiop9sMXTx6J7v3YSgvpDoRTEv\r\nbxq636C9PaizL6eC8RCF3BTSjMR/bWkgBMnCcz45p4CXpo5H7xdpFhnfTMqS\r\nPb/mWbF0QWyQr47SGQ2VurE32SfCqvlQD44Rm30VQLV4yyQ/HvuYp1ipwj0D\r\naLNM0qGwAYpYqrrImIxpHu8bKNf6+n0Bqmnr9lUBhnQFNiV6c2OCxtvG5ooj\r\nHaleGvO7cLBkQJwI2XovEfYR6YRjUnb1Of6rgwN7Ikn2JsvcmnGqR1v8MxOm\r\nxo4LJZCs/Ir0p2af93ROtQnIU/KR1rKdDAq0TZ25Rnh5EtGqv89DKRt63/2j\r\nZFI/uycZzHXML+9/24c7XG5jEeLtrDJe2Oh+pMS+LuEUIqSgiedrPwiznaf9\r\n0VMwkMWDzkz9aFKBsEHp4qlf2VE0iacbezU=\r\n=Ad3H\r\n-----END PGP SIGNATURE-----\r\n","size":2361,"noattachment":false,"key":"/@putout/plugin-apply-template-literals/-/@putout/plugin-apply-template-literals-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-apply-template-literals_2.0.0_1683017722129_0.3907575398742569"},"_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":1683017722278,"_cnpm_publish_time":1683017722278,"dist-tags":{"latest":"5.0.0"}}