/css-class

Format string to be a valid class name.

Primary LanguageJavaScriptMIT LicenseMIT

css-class

GitHub license npm version CircleCI Status Coverage

Format string to be a valid class name.

Install

npm i @bscop/css-class

Usage

import cssClass from "@bscop/css-class";

cssClass("btn", { "btn-disabled": true }); // btn btn-disabled

Contribute

Read the guidelines.

Run tests

npm test

Coverage

Coverage reports are hosted on codecov.

npm run badge:coverage -- --token=<guid>

Bruno Scopelliti
www.brunoscopelliti.com