Socket
Socket
Sign inDemoInstall

easy-classnames

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    easy-classnames

this is a simplified version of ClassNames with high performance in ES6


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

easyClassNames

This is a simplified version of classnames with high performance in ES6.

Installation

Node JS (>=8.4.0)

    npm install easy-classnames
    or
    yarn add easy-classnames

browser

<script src="https://unpkg.com/easy-classnames@1.0.0/dist/easyClassNames.umd.js" />

Usage

ES Modules

import classnames from 'easy-classnames'

common js

const classnames = require('easy-classnames')

browser

var classnames = window.easyClassNames

Usage

easyClassnames only support an object as argument to achieve the best performance without speed penalty.

classNames({ foo: true, bar: true }) // => 'foo bar'

License

MIT

Keywords

FAQs

Last updated on 22 Dec 2017

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