klsx 0.1.2 → 0.1.4
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 +12 -14
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# KLSX
|
|
1
|
+
# 🎨 KLSX
|
|
2
2
|
|
|
3
|
-
A simple replacement for [clsx](https://
|
|
3
|
+
A simple replacement for [clsx](https://www.npmjs.com/package/clsx) **_you may not actually need_** (see the [benchmark](https://github.com/vuolter/klsx/blob/main/BENCHMARK.md))
|
|
4
4
|
|
|
5
|
-
Developed as a case study, [Bun](https://bun.com) friendly.
|
|
5
|
+
Developed as a case study, [Bun](https://bun.com) friendly. 🌿
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### Features
|
|
8
8
|
|
|
9
|
-
- Unnecessarily fast
|
|
10
|
-
- Same functionality and API of clsx
|
|
11
|
-
- Modern ESM syntax
|
|
12
|
-
- Zero dependencies
|
|
13
|
-
- No "lite" mode (simply doesn't make any sense)
|
|
14
|
-
- Only 277B (~190B compressed)
|
|
15
|
-
- Deeply typed and tested
|
|
16
|
-
- Experimental WASM variant (for research purposes, do not use it
|
|
9
|
+
- 🚀 Unnecessarily fast (~20M ops/s)
|
|
10
|
+
- 🎯 Same functionality and API of clsx
|
|
11
|
+
- 👑 Modern ESM syntax
|
|
12
|
+
- 💎 Zero dependencies
|
|
13
|
+
- ☀️ No "lite" mode (simply doesn't make any sense)
|
|
14
|
+
- 🎈 Only 277B (~190B compressed)
|
|
15
|
+
- 🐳 Deeply typed and tested
|
|
16
|
+
- 🚨 Experimental WASM variant (for research purposes, do not use it)
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
@@ -27,8 +27,6 @@ or with `npm`:
|
|
|
27
27
|
npm install klsx
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
_(or with whatever package manager you prefer)_
|
|
31
|
-
|
|
32
30
|
## Quick Start
|
|
33
31
|
|
|
34
32
|
```typescript
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "klsx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Walter Purcaro",
|
|
6
6
|
"url": "https://github.com/vuolter"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@eslint/js": "^9.39.1",
|
|
16
16
|
"@prettier/plugin-oxc": "^0.0.5",
|
|
17
17
|
"@socketsecurity/bun-security-scanner": "^1.1.1",
|
|
18
|
-
"@types/bun": "^1.3.
|
|
19
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
18
|
+
"@types/bun": "^1.3.3",
|
|
19
|
+
"@typescript/native-preview": "^7.0.0-dev.20251122.1",
|
|
20
20
|
"classix": "^2.2.6",
|
|
21
21
|
"classnames": "^2.5.1",
|
|
22
22
|
"clsx": "^2.1.1",
|