You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

class-set

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-set

classSet is a Javascript library to create CSS class strings out of arbitrary parameters.

0.0.4
latest
npmnpm
Version published
Maintainers
1
Created
Source

What is "class-set"?

class-set is a Javascript library to create CSS class strings out of arbitrary parameters.

This is a conceptual extension of React's classSet.

The primary difference is that you can supply an arbitrary number of arguments with mixed types, and each will be evaluated.

Example

var classSet = require('class-set');
classes = classSet({ one: true, two: true, nope: false }, "three", null, "four");
// classes is now "one two three four"

Installation

via npm:

$ npm install class-set

class-set is licensed under MIT.

Keywords

react

FAQs

Package last updated on 24 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts