Socket
Socket
Sign inDemoInstall

class-set

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

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
Maintainers
1
Install size
1.84 kB
Created

Readme

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

Last updated on 24 Nov 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc