Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bscop/css-class

brunoscopelliti16MIT1.0.1TypeScript support: included

Format string to be a valid class name.

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.1 (2023-04-16)

Bug Fixes

1.0.0 (2021-05-20)

Features

  • implement functionality (a71d037)