@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")

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i @citrus327/bem-namer

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.84 kB

    Total Files

    7

    Last publish

    Collaborators

    • hophop0327