
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.
@format/bem
Advanced tools
A small utility for creating old-school BEM classes, especially in a React context.
NOTE: Maintained for internal use only.
Given a component definition
import { bem } from "bem";
export const AlertBar = ({ level, message }) => {
const b = bem("alert-bar");
return (
<div className={b.e("wrapper")}>
<p className={b.e("message").m(level)}>{message}</p>
</div>
);
};
Rendering
<AlertBar message="Hello!" level="warning" />
Yields
<div class="alert-bar__wrapper">
<p class="alert-bar__message alert-bar__message--warning">Hello!</p>
</div>
bem('alert-bar').e('wrapper')
yields "alert-bar__wrapper"
bem('alert-bar').m('warning')
yields "alert-bar alert-bar--warning"
bem('alert-bar').e('wrapper').m('warning')
yields "alert-bar__wrapper alert-bar__wrapper--warning"
bem('alert-bar').m(['warning', 'condensed'])
yields "alert-bar alert-bar--warning alert-bar--condensed"
bem('alert-bar').e('wrapper').m(['warning', 'condensed'])
yields "alert-bar__wrapper alert-bar__wrapper--warning" alert-bar__wrapper--condensed
bem('alert-bar').m({ warning: true, condensed: true })
yields "alert-bar alert-bar--warning alert-bar--condensed"
bem('alert-bar').e('wrapper').m({ warning: true, expanded: false })
yields "alert-bar__wrapper alert-bar__wrapper--warning"
FAQs
BEM className generator adapted for React
We found that @format/bem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.