
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
babel-plugin-transform-tag-template-literals
Advanced tools
A Babel transform that tags each non-tagged template literal with a chosen identifier.
`a template ${literal}`
// Will become
html`a template ${literal}`
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']
}
tagName
: The identifier to use for the tag function. If empty, the plugin won't try to tag anything// 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
Template for NodeJS projects
We found that babel-plugin-transform-tag-template-literals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.