
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
babel-plugin-mithril-add-data-attribute
Advanced tools
Babel plugin adds attributes to m() components - intended for development. Helps debug - find your components in a large repo. Adds component name and file to component data attributes which will be visible in the generated HTML.
BETA. This plugin adds a data-component
attribute to top-level DOM elements rendered by mithril component function m
. Intended for development - bloats HTML. Helps debug - find your components in a large repo from generated HTML. Adds component name and file to component data attributes which will be visible in the generated HTML.
Needs more tests and better support for function/class-declarations.
In
const MyComponent = () => m("div");
const InnerComp = {};
const OuterComp = () => {
return m("div", m(InnerComp));
};
Out
const MyComponent = () =>
m("div", {
"data-component": "MyComponent",
});
const InnerComp = {};
const OuterComp = () => {
return m(
"div",
{
"data-component": "OuterComp",
},
m(InnerComp)
);
};
# yarn
yarn add --dev babel-plugin-mithril-add-data-attribute
# npm
npm install --save-dev babel-plugin-mithril-add-data-attribute
.babelrc
.babelrc
{
"plugins": ["mithril-add-data-attribute"]
}
babel --plugins mithril-add-data-attribute script.js
require("babel-core").transform("code", {
plugins: ["mithril-add-data-attribute"],
});
Under development
Please do.
FAQs
Babel plugin adds attributes to m() components - intended for development - do not used in production. Helps debug - find your components in a large repo. Adds component name and file to component data attributes which will be visible in the generated HTM
The npm package babel-plugin-mithril-add-data-attribute receives a total of 7 weekly downloads. As such, babel-plugin-mithril-add-data-attribute popularity was classified as not popular.
We found that babel-plugin-mithril-add-data-attribute 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.