
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
A simple module for creating dynamic class names following the BEM Methodology. Intended to be used with React.
Inspired by classnames
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies:
npm install bembo
or
for installation via yarn
yarn add bembo
import bem from "bembo";
// Creating a block
bem("list") // => 'list'
// Creating a block with modifiers
bem("list", {error: true, severe: "10", success: ""}); // => 'list list--error list--severe'
// Creating an element
bem("list__item") // => 'list__item'
// Creating an element with modifiers
bem("list__item", {error: true, severe: "10", success: ""}); // => 'list__item list__item--error list__item--severe'
import bem from "bembo";
// Creating an element
let b = bem("list")
b.e("item") // => 'list__item'
// Adding element modifiers
b = bem("list")
b.e("item", {error: true, severe: "10", success: ""}) // => 'list__item list__item--error list__item--severe'
import bem from "bembo";
// Adding modifiers by object
let b = bem("list")
b.m({error: true, severe: "10", success: ""}) // => 'list list--error list--severe'
// Adding modifiers by string
b = bem("list")
b.m("error", "severe") // => 'list list--error list--severe'
// Overriding modifiers
b = bem("list")
b.m({error: true, success: ""}, {error: null, success: "200"}) // => 'list list--success'
import React from "react";
import bem from "bembo";
const b = bem("card")
const btnB = bem("btn")
function Card({title, text, error = "An error occurred", disabled = true}){
return (
<div className={b}>
<h2 className={b.e('header')}>{title}</h2>
<p className={b.e("text")}>{text}</p>
<span className={b.e("error-text", {error})}>{error}</span>
<button className={btnB.m({disabled})}>
Submit
</button>
</div>
)
}
/*
<div class="card">
<h2 class="card__header">
Card Title
</h2>
<p class="card__text">
Card text content
</p>
<span class="card__error-text card__error-text--error">
An error occurred
</span>
<button class="btn btn--disabled">
Submit
</button>
</div>
*/
FAQs
Module for creating classNames based on BEM methodology
We found that bembo 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.