@jsxtools/classes
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

classes

npm version build status issue tracker pull requests

classes returns a normalized string of class names from strings, arrays, or objects.

It is 302 bytes (212 gzipped).

Installation

npm install @jsxtools/classes

Usage

import classes from '@jsxtools/classes';

classes('this', 'that', 'this'); // 'this that'
classes(['this', 'that', 'this']); // 'this that'
classes({ 'this': true, 'that': true, 'else': false }); // 'this that'

Readme

Keywords

none

Package Sidebar

Install

npm i @jsxtools/classes

Weekly Downloads

0

Version

1.0.6

License

CC0-1.0

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • jonathantneal