
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
rollup-plugin-template-string-optimize
Advanced tools
template string optimize plugin for rollup
npm i rollup-plugin-template-string-optimize -D
// rollup.config.js
import templateStringOptimize from 'rollup-plugin-template-string-optimize'
export default {
input: 'main.js',
plugins: [
templateStringOptimize(),
babel({
presets: [['@babel/env', { modules: false }]]
})
]
}
// ES6 template string HTML
const template = data => `
<!-- section start -->
<section>
<h3>${data.title}</h3>
<div>${data.date}</div>
<dl>
<dt>Coffee</dt>
<dt>Black hot drink</dt>
<dt>Milk</dt>
<dd>
<ul>
${data.list.map((item) => `
<li>${item}</li>
`).join('')}
</ul>
</dd>
</dl>
</section>
<!-- section end -->
`;
// source => babel
var template = function template(data) {
return '\n <!-- section start -->\n <section>\n <h3>' + data.title + '</h3>\n <div>' + data.date + '</div>\n <dl>\n <dt>Coffee</dt>\n <dt>Black hot drink</dt>\n <dt>Milk</dt>\n <dd>\n <ul>\n ' + data.list.map(function (item) {
return '\n <li>' + item + '</li>\n ';
}).join('') + '\n </ul>\n </dd>\n </dl>\n </section>\n <!-- section end -->\n';
};
// source => babel => template-string-optimize
var template = function template(data) {
return '<section><h3>' + data.title + '</h3><div>' + data.date + '</div><dl><dt>Coffee</dt><dt>Black hot drink</dt><dt>Milk</dt><dd><ul>' + data.list.map(function (item) {
return '<li>' + item + '</li>';
}).join('') + '</ul></dd></dl></section>';
};
FAQs
template string optimize plugin for rollup
We found that rollup-plugin-template-string-optimize 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.