Socket
Socket
Sign inDemoInstall

classnames

Package Overview
Dependencies
0
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

CONTRIBUTING.md

16

index.js

@@ -0,1 +1,8 @@

/*
Copyright (c) 2015 Jed Watson.
Licensed under the MIT License (MIT), see
https://github.com/JedWatson/classnames/blob/master/LICENSE
*/
function classNames() {

@@ -27,5 +34,12 @@ var classes = '';

// safely export classNames in case the script is included directly on a page
// safely export classNames for node / browserify
if (typeof module !== 'undefined' && module.exports) {
module.exports = classNames;
}
// safely export classNames for RequireJS
if (typeof define !== 'undefined' && define.amd) {
define('classnames', [], function() {
return classNames;
});
}

2

package.json
{
"name": "classnames",
"version": "1.2.0",
"version": "1.2.1",
"description": "A simple utility for conditionally joining classNames together",

@@ -5,0 +5,0 @@ "main": "index.js",

Classnames
===========
[![Version](http://img.shields.io/npm/v/classnames.svg)](https://www.npmjs.org/package/classnames)
A simple javascript utility for conditionally joining classNames together.
Install with npm, or download the [UMD version](http://wzrd.in/standalone/classnames@1) (provides window.classnames, or defines the AMD modules 'classnames').
Install with npm or Bower.

@@ -8,0 +10,0 @@ ```sh

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc