Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
babel-plugin-ignore-html-and-css-imports
Advanced tools
Ignore html and css imports in your code. Useful for testing meteor without it's context
import html from './example.html';
$ npm install --save-dev babel-plugin-ignore-html-and-css-imports
.babelrc
(Recommended).babelrc
{
"plugins": ["ignore-html-and-css-imports"]
}
$ babel --plugins ignore-html-and-css-imports script.js
require("babel-core").transform("code", {
plugins: ["transform-ignore-html-and-css-imports"]
});
You can configure what extensions to remove by adding an optional removeExtensions
option.
{
"plugins": [
[
"ignore-html-and-css-imports",
{
"removeExtensions": [".png"]
}
]
]
}
Initially based on yeiniel/babel-plugin-transform-html-import-to-string which turned out still not to work properly in Meteor - and since we didn't need the string at all, we've decided to change it a bit.
FAQs
Ignore html and css imports in your code. Useful for testing meteor without it's context
We found that babel-plugin-ignore-html-and-css-imports 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.