Socket
Socket
Sign inDemoInstall

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.


Version published
Weekly downloads
334
increased by79.57%
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc