Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
esbuild-plugin-postcss-literal
Advanced tools
PostCSS tagged template literals plugin for esbuild.
PostCSS tagged template literals plugin for esbuild.
npm install esbuild-plugin-postcss-literal --save-dev
button.css.js
const styles = css`
.button {
&.-primary {
background: var(--primary);
}
}
`;
esbuild.config.json
import esbuild from 'esbuild';
import postcssLiteral from 'esbuild-plugin-postcss-literal';
esbuild
.build({
entryPoints: ['index.js'],
bundle: true,
outfile: 'main.js',
plugins: [postcssLiteral()]
})
.catch(() => process.exit(1));
package.json
{
"type": "module",
"scripts": {
"start": "node esbuild.config.js"
}
}
esbuild.config.json
postcssLiteral({
filter: /.*/,
namespace: '',
tag: 'css',
minify: false, // esbuild is used to minify and parse errors
config: {} // postcss config here or in .postcssrc
});
{
"plugins": {
"postcss-nesting": {}
}
}
esbuild-serve → Serve with live reload for esbuild.
esbuild-plugin-pipe → Pipe esbuild plugins output.
esbuild-plugin-babel → Babel plugin for esbuild.
FAQs
PostCSS tagged template literals plugin for esbuild.
The npm package esbuild-plugin-postcss-literal receives a total of 2 weekly downloads. As such, esbuild-plugin-postcss-literal popularity was classified as not popular.
We found that esbuild-plugin-postcss-literal 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.