Socket
Book a DemoInstallSign in
Socket

easy-classnames

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
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

classnames

FAQs

Package last updated on 22 Dec 2017

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