Nocturnal Parakeet Monitor

    classies
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.6 • Public • Published

    classies

    Build Status Renovate Compression

    Simple css class string builder without shenanigans.

    install

    npm install classies
    

    usage

    const cls = require("classies");
    const isSelected = true;
    
    let classString = cls(
      {
        foo: true,
        bar: someCondition,
        [classString]: true,
        isSelected,
      },
      separator
    ); // separator defaults to ' '

    perfomance

    see jsperf

    Latest version was done by @isiahmeadows and @gamb.

    If you have a better version, feel free to submit a PR.

    releases

    Releases are automated by pr-release

    Keywords

    Install

    npm i classies

    DownloadsWeekly Downloads

    33

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    8.36 kB

    Total Files

    11

    Last publish

    Collaborators

    • stephan.hoyer