@5alid/cls
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Usage

npm i @5alid/cls
or
yarn add @5alid/cls
import cls from '@5alid/cls';

// signature cls(...args);
// args can be: string or [condition: boolean, string, string?]

// basic usage example
cls('px-4 py-1', 'bg-purple'); // result -> 'px-4 py-1 bg-purple'

// with conditions
cls('px-4 py-1', [true, 'bg-blue', 'bg-purple']); // result -> 'px-4 py-1 bg-blue'

Why?

this small utility helps cleaning up class names styling soluotions like tailwindcss, bootstrap etc.

/@5alid/cls/

    Package Sidebar

    Install

    npm i @5alid/cls

    Weekly Downloads

    3

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    2.42 kB

    Total Files

    4

    Last publish

    Collaborators

    • 5alid