Socket
Book a DemoInstallSign in
Socket

babel-plugin-transform-tag-template-literals

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-tag-template-literals

Template for NodeJS projects

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

babel-plugin-transform-tag-template-literals

A Babel transform that tags each non-tagged template literal with a chosen identifier.

`a template ${literal}`

// Will become

html`a template ${literal}`

Usage

Usage

Install the plugin with your favourite package manager. For example, with NPM:

npm install --save-dev babel-plugin-transform-last-statement

Then in your Babel configuration, add it to the list of plugins:

{
  plugins:['transform-tag-template-literals']
}

Options

  • tagName: The identifier to use for the tag function. If empty, the plugin won't try to tag anything

Possible future work

  • Allow to set which tagName to use through a comment, like // tag-template-literals: tagName. Some thoughts will be needed for the scoping. Apply to next block (function,if...) or maybe use a // end-tag-template-literals?

FAQs

Package last updated on 06 Mar 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.