-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Closes #17
- Loading branch information
Showing
4 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "clsx", | ||
"version": "1.0.4", | ||
"repository": "lukeed/clsx", | ||
"description": "A tiny (223B) utility for constructing className strings conditionally.", | ||
"description": "A tiny (229B) utility for constructing className strings conditionally.", | ||
"module": "dist/clsx.m.js", | ||
"unpkg": "dist/clsx.min.js", | ||
"main": "dist/clsx.js", | ||
|
@@ -11,7 +11,7 @@ | |
"author": { | ||
"name": "Luke Edwards", | ||
"email": "[email protected]", | ||
"url": "lukeed.com" | ||
"url": "https://lukeed.com" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
|
@@ -31,7 +31,7 @@ | |
"classnames" | ||
], | ||
"devDependencies": { | ||
"bundt": "^0.1.1", | ||
"bundt": "^0.4.0", | ||
"tap-spec": "^5.0.0", | ||
"tape": "^4.9.1" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# clsx [![Build Status](https://travis-ci.org/lukeed/clsx.svg?branch=master)](https://travis-ci.org/lukeed/clsx) | ||
|
||
> A tiny (223B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module. | ||
> A tiny (229B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module. | ||
This module is available in three formats: | ||
|
||
|
@@ -68,6 +68,14 @@ clsx(true, false, '', null, undefined, 0, NaN); | |
|
||
For snapshots of cross-browser results, check out the [`bench`](/bench) directory~! | ||
|
||
## Support | ||
|
||
All versions of Node.js are supported. | ||
|
||
All browsers that support [`Array.isArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility) are supported (IE9+). | ||
|
||
>**Note:** For IE8 support and older, please install `[email protected]` and beware of [#17](https://github.com/lukeed/clsx/issues/17). | ||
|
||
## Related | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters