{"name":"@putout/plugin-apply-template-literals","version":"3.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":"^8.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^17.0.0-0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"gitHead":"afd9dac4581f94fc82fd10a2dfc456d9b9347bb5","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-template-literals@3.0.0","_nodeVersion":"20.11.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-U5APqEN3PIhK/xEUReCz0UrhXftaa/9i7GQYh8kRcd9reD4HaLys1S6+wyUBKljNSev2LqMW2lUzO2JWKGLywA==","shasum":"7ac12ef939893ff7d7bf2cde446de77097bd4764","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-template-literals/download/@putout/plugin-apply-template-literals-3.0.0.tgz","fileCount":4,"unpackedSize":5156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAP7kwB4JQ0NegEFipRAB+BuQ4w4O681+pc1gyg4YWEyAiBZtxhtUFi/w2H01G4MMHJDQLDrPKRjSA8QurI+I1RqDw=="}],"size":2464,"noattachment":false,"key":"/@putout/plugin-apply-template-literals/-/@putout/plugin-apply-template-literals-3.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_3.0.0_1706785578732_0.4093276408198696"},"_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":1706785578896,"_cnpm_publish_time":1706785578896,"dist-tags":{"latest":"5.0.0"}}