@eighfy/classmaker
v1.0.0
Published
## Installation
Downloads
4
Readme
Basic Class Maker class
Installation
yarn add @eighfy/classmaker
or
npm install @eighfy/classmaker
Usage
import classMaker from "@eighfy/classmaker"
const classNames = classMaker("hello", "there")
// classNames.toString() --> "hello-there"
// `${classNames}` --> "hello-there"
// classNames.toString("$") --> "hello$there"
const extended = classNames.add("!")
// classNames.toString() --> "hello-there"
// extended.toString() --> "hello-there-!"