
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.
@fbem/core
Advanced tools
@fbem/core is a core package for functional BEM. It provides utility for parsing BEM entities into BEM structure, which is used for code generation.
This package is base for all other packages. Basically you shouldn't use it.
npm i @fbem/core
type NamingOptions = {
prefix: string;
elem: string;
modName: string;
modVal: string;
};
type StringMod = {
type: 'string';
values: Record<string, string>;
};
type BooleanMod = {
type: 'boolean';
value: string;
};
type Mod = StringMod | BooleanMod;
type BemParams = {
base: string;
mods: Record<string, Mod>;
};
type BemFunctionName = string;
type BemStructure = Record<BemFunctionName, BemParams>;
const createBemStructure: (classesMap: Record<string, string>, naming: NamingOptions) => BemStructure;
const parseBem: (className: string, naming: NamingOptions) => {
block: string;
elem: string;
modName: string;
modVal: string;
}
createBemStructure: (classesMap: Record<string, string>, naming: NamingOptions) => BemStructureThe function is used to convert a map of CSS classes into a structure that is used for code generation.
parseBem: (className: string, naming: NamingOptions) => { block: string; elem: string; modName: string; modVal: string; }The function is used to parse the CSS class into its constituent entities.
FAQs
Functional BEM core
We found that @fbem/core 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.