@citrus327/bem-namer
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@citrus327/bem-namer

Download Version

A simplified version of BEM 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")

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

Package Sidebar

Install

npm i @citrus327/bem-namer

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.84 kB

Total Files

7

Last publish

Collaborators

  • hophop0327