Socket
Socket
Sign inDemoInstall

classix

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classix - npm Package Compare versions

Comparing version 2.1.14 to 2.1.15

2

package.json
{
"name": "classix",
"version": "2.1.14",
"version": "2.1.15",
"description": "The fastest and tiniest utility for conditionally joining classNames.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/classix.js",

@@ -93,2 +93,20 @@ ![Banner](media/banner.jpg)

## Migrating to classix
If you are using `classnames` or `clsx`, you can migrate to `classix` by changing your `imports`:
```diff
- import classnames from 'classnames';
+ import cx from 'classix';
```
And if you were using object arguments, you'll have to convert them to string arguments:
```diff
- classnames({ 'class-1': cond });
+ cx(cond && 'class-1')
```
That's it!
## Changelog

@@ -95,0 +113,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc