Socket
Socket
Sign inDemoInstall

@putout/plugin-convert-template-to-string

Package Overview
Dependencies
389
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @putout/plugin-convert-template-to-string

🐊Putout plugin adds ability to find and remove useless template string


Version published
Weekly downloads
16K
decreased by-13.18%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@putout/plugin-convert-template-to-string NPM version

(c) MDN

🐊Putout plugin adds ability to find and convert Template Literals to calling of String constructor.

Install

npm i @putout/plugin-convert-template-to-string

Rule

{
    "rules": {
        "convert-template-to-string": "on"
    }
}

❌ Example of incorrect code

const s = `${a + b}`;

✅ Example of correct code

const s = String(a + b);

License

MIT

Keywords

FAQs

Last updated on 06 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc