1.0.0 • Published 2 years ago

@eighfy/classmaker v1.0.0

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

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-!"
1.0.0

2 years ago