cnfast 0.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/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "cnfast",
3
+ "version": "0.0.2",
4
+ "description": "A tiny, fast, dependency-free replacement for the `cn` class name utility.",
5
+ "keywords": [
6
+ "className",
7
+ "classes",
8
+ "classnames",
9
+ "clsx",
10
+ "cn",
11
+ "tailwind",
12
+ "utility"
13
+ ],
14
+ "license": "MIT",
15
+ "author": {
16
+ "name": "Aiden Bai",
17
+ "email": "aiden@million.dev"
18
+ },
19
+ "bin": {
20
+ "cnfast": "./bin/cli.js"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "bin",
25
+ "package.json",
26
+ "README.md",
27
+ "LICENSE"
28
+ ],
29
+ "type": "module",
30
+ "main": "dist/index.cjs",
31
+ "module": "dist/index.mjs",
32
+ "browser": "dist/index.iife.js",
33
+ "types": "dist/index.d.mts",
34
+ "exports": {
35
+ "./package.json": "./package.json",
36
+ ".": {
37
+ "import": {
38
+ "types": "./dist/index.d.mts",
39
+ "default": "./dist/index.mjs"
40
+ },
41
+ "require": {
42
+ "types": "./dist/index.d.cts",
43
+ "default": "./dist/index.cjs"
44
+ }
45
+ }
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "devDependencies": {
51
+ "@types/node": "^25.6.0",
52
+ "@types/prompts": "^2.4.9",
53
+ "clsx": "^2.1.1",
54
+ "commander": "^14.0.3",
55
+ "esbuild": "^0.28.1",
56
+ "magic-string": "^0.30.17",
57
+ "ora": "^9.4.0",
58
+ "picocolors": "^1.1.1",
59
+ "playwright-core": "^1.61.0",
60
+ "prompts": "^2.4.2",
61
+ "tailwind-merge": "^3.6.0",
62
+ "tinybench": "^6.0.2",
63
+ "tinyglobby": "^0.2.10"
64
+ },
65
+ "scripts": {
66
+ "build": "vp pack",
67
+ "dev": "vp pack --watch",
68
+ "test": "vp test",
69
+ "typecheck": "tsc --noEmit",
70
+ "bench": "tsx bench/cn.bench.ts",
71
+ "bench:lru": "tsx bench/lru.bench.ts",
72
+ "bench:cases": "tsx scripts/extract-bench-cases.ts",
73
+ "bench:corpus": "tsx bench/corpus.bench.ts",
74
+ "bench:extract": "tsx scripts/extract-cases.ts",
75
+ "bench:vitals": "tsx scripts/web-vitals-harness.ts",
76
+ "bench:pages": "tsx scripts/page-vitals-harness.ts",
77
+ "bench:pages:capture": "tsx scripts/capture-pages.ts",
78
+ "size": "tsx scripts/bundle-size.ts",
79
+ "iter": "bash scripts/optimize-iter.sh",
80
+ "deopt": "bash scripts/deopt.sh"
81
+ }
82
+ }