1.0.6 • Published 5 years ago

@jsxtools/classes v1.0.6

Weekly downloads
1
License
CC0-1.0
Repository
github
Last release
5 years ago

classes

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'
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago