Socket
Book a DemoInstallSign in
Socket

@putout/plugin-remove-useless-template-expressions

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-remove-useless-template-expressions

🐊Putout plugin adds ability to remove useless template expressions

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
17K
-2.24%
Maintainers
1
Weekly downloads
 
Created
Source

@putout/plugin-remove-useless-template-expressions NPM version

Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates.

(c) MDN

🐊Putout plugin adds ability to remove useless template expressions.

Install

npm i @putout/plugin-remove-useless-template-expressions -D

Rule

{
    "rules": {
        "remove-useless-template-expressions": "on"
    }
}

❌ Example of incorrect code

const y = `${'hello'} + ${'world'}`;

✅ Example of correct code

const y = `hello + world`;

License

MIT

Keywords

putout

FAQs

Package last updated on 06 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts