simple-merge-class-names 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,8 +14,10 @@ A straightforward utility for merging CSS class names in `React + Tailwind` and
|
|
|
14
14
|
- [Breaking Changes From Version 1.X.X](#breaking-changes-from-version-1xx)
|
|
15
15
|
- [Testing](#testing)
|
|
16
16
|
- [Source Code](#source-code)
|
|
17
|
-
- [
|
|
18
|
-
|
|
17
|
+
- [Misc.](#misc)
|
|
18
|
+
|
|
19
|
+
- [Why the Mismatch Between Exported Function and Package Name?](#why-the-mismatch-between-exported-function-and-package-name)
|
|
20
|
+
- [Where This Package Excels](#where-this-package-excels)
|
|
19
21
|
|
|
20
22
|
- [Production Considerations](#production-considerations)
|
|
21
23
|
- [License](#license)
|
|
@@ -143,19 +145,21 @@ export const mergeClassNames = (...args) => {
|
|
|
143
145
|
};
|
|
144
146
|
```
|
|
145
147
|
|
|
146
|
-
##
|
|
148
|
+
## Misc.
|
|
149
|
+
|
|
150
|
+
### Why the Mismatch Between Exported Function and Package Name?
|
|
147
151
|
|
|
148
152
|
I wanted to name the package as `mergeClassNames` to reflect the single exported function, but the NPM Package Registry does not allow capital letters, only lower case and dash characters.
|
|
149
153
|
|
|
150
154
|
In addition there was already a package named `merge-class-names` but it is no longer maintained (and the developer recommends `clsx` instead).
|
|
151
155
|
|
|
152
|
-
|
|
156
|
+
### Where This Package Excels
|
|
153
157
|
|
|
154
158
|
While similar packages exist (`clsx`) with better features and potentially improved performance, `simple-merge-class-names` focuses on being very straightforward and easy to reason about, as defined in its source code.
|
|
155
159
|
|
|
156
160
|
## Production Considerations
|
|
157
161
|
|
|
158
|
-
If you are considering this package for production, you might also want to look into `clsx
|
|
162
|
+
If you are considering this package for production, you might also want to look into `clsx`: [https://www.npmjs.com/package/clsx](https://www.npmjs.com/package/clsx)
|
|
159
163
|
|
|
160
164
|
## License
|
|
161
165
|
|
package/package.json
CHANGED