0.3.3 • Published 2 years ago

@h7ghost/make-bem v0.3.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

make-bem

Library for generating class names string to use as props in html/jsx.

Usage example

const bem = makeBEM("block");

console.log(bem()); // "block"
console.log(bem(null, ["hello"])); // "block block--hello";

const cls = bem("element",
  {
    "foo": true,
    "bar": false,
    "object": {}
  },
  ["array"]
);

console.log(cls); // "block__element block__element--foo block__element--object block__element--array"
0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago