Skip to content

citrus327/bem-namer

Repository files navigation

@citrus327/bem-namer

Download Version

A simplified version of BEM class name generator

Installation

pnpm install @citrus327/bem-namer

Usage

import { bem } from '@citrus327/bem-namer';

const { b, m } = bem("user-card")

expect(b()).toBe("user-card")
expect(b("container")).toBe("user-card-container")
expect(m("primary")).toBe("user-card--primary")
expect(m("container", "primary")).toBe("user-card-container--primary")

About

A simplified version of BEM class name generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published