classnames
Advanced tools
Comparing version 1.2.0 to 1.2.1
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; | ||
}); | ||
} |
{ | ||
"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 |
8343
9
119
61