@@ -33,9 +33,7 @@ import Contributors from '../../components/Contributors.astro';
33
33
34
34
:::section{ .badges }
35
35
36
- [ ![ NPM Version] ( https://img.shields.io/npm/v/knip?color=f56e0f )] ( https://www.npmjs.com/package/knip )
37
- [ ![ NPM Downloads] ( https://img.shields.io/npm/dm/knip?color=f56e0f )] ( https://www.npmjs.com/package/knip )
38
- [ ![ GitHub Repo stars] ( https://img.shields.io/github/stars/webpro-nl/knip?style=flat&color=f56e0f )] ( https://github.com/webpro-nl/knip )
36
+ [ ![ NPM Version] [ 2 ]] [ 1 ] [ ![ NPM Downloads] [ 3 ]] [ 1 ] [ ![ GitHub Repo stars] [ 5 ]] [ 4 ]
39
37
40
38
:::
41
39
@@ -47,44 +45,26 @@ import Contributors from '../../components/Contributors.astro';
47
45
48
46
:::div{ .sponsor }
49
47
50
- Using Knip? [ You can support it!] [ 2 ]
48
+ Using Knip? [ You can support it!] [ 6 ]
51
49
52
50
:::
53
51
54
52
<CardGrid >
55
- <Card title = " Why?" icon = " approve-check" >
53
+ <Card title = " Why use Knip ?" icon = " approve-check" >
56
54
57
55
Knip finds and fixes unused files, dependencies and exports. Use it for
58
56
enhanced code and dependency management.
59
57
60
- Read the full explanation: [ why should I use Knip?] [ 1 ]
61
-
62
58
</Card >
63
59
64
- <Card title = " How?" icon = " setting" >
65
-
66
- Deep analysis from fine-grained entry points based on the actual frameworks
67
- and tooling in (mono)repos for accurate and actionable results.
68
- Advanced features for maximum coverage:
60
+ <Card title = " How does it work?" icon = " setting" >
69
61
70
- * Custom module resolution
71
- * Configuration file parsers
72
- * Advanced shell script parser
73
- * Built-in and custom compilers
74
- * Auto-fix most issues
62
+ Advanced analysis starting from fine-grained entry points based on the
63
+ actual frameworks and tooling in (mono)repos for accurate and actionable
64
+ results.
75
65
76
66
</Card >
77
- </CardGrid >
78
67
79
- ## 🧡 Sponsors
80
-
81
- Eternal gratitude to the companies and people that are already supporting Knip:
82
-
83
- <Sponsors direction = " row" showAll = { false } />
84
-
85
- Please see [ Sponsors] [ 2 ] for the full list. Consider supporting the project too!
86
-
87
- <CardGrid stagger >
88
68
<Card title = " Battle-tested" icon = " approve-check" >
89
69
90
70
Thousands of projects are already using Knip!
@@ -93,34 +73,36 @@ Please see [Sponsors][2] for the full list. Consider supporting the project too!
93
73
94
74
<Card title = " Plugins" icon = " open-book" >
95
75
96
- Knip comes with [ over 90 plugins] [ 3 ] for tools and frameworks like Astro,
76
+ Knip comes with [ over 90 plugins] [ 7 ] for tools and frameworks like Astro,
97
77
Cypress, ESLint, Jest, GitHub Actions, Next.js, Nx, Remix, Storybook,
98
78
Svelte, Vite, Vitest, Webpack and many many more.
99
79
100
80
</Card >
101
81
102
82
<Card title = " Playground" icon = " rocket" >
103
83
104
- Try Knip on the [ playground] [ 4 ] .
84
+ Try Knip on the [ playground] [ 8 ] .
105
85
106
86
</Card >
107
87
108
88
<Card title = " Troubleshooting" icon = " warning" >
109
89
110
- Need help? [ Start troubleshooting] [ 5 ] .
90
+ Need help? [ Start troubleshooting] [ 9 ] .
111
91
112
92
</Card >
93
+ </CardGrid >
113
94
114
- < Card title = " /'knɪp/ " icon = " translate " >
95
+ ## 🧡 Sponsors
115
96
116
- Knip means "(to) cut" and is pronounced with a hard "K" 🇳🇱
97
+ Eternal gratitude to the companies and people that are already supporting Knip:
117
98
118
- </Card >
119
- </CardGrid >
99
+ <Sponsors direction = " row" showAll = { false } />
100
+
101
+ Please see [ Sponsors] [ 6 ] for the full list. Consider supporting the project too!
120
102
121
103
## 🧡 Introduction video
122
104
123
- [ James Shopland] [ 6 ] has a great introduction and overview of Knip (thanks
105
+ [ James Shopland] [ 10 ] has a great introduction and overview of Knip (thanks
124
106
James!):
125
107
126
108
<YouTube id = " uhEkgWt-pUM" />
@@ -135,48 +117,52 @@ Special thanks to the wonderful people who have contributed to this project:
135
117
136
118
Most recent article first:
137
119
138
- - Tom MacWright: [ Knip: good software for cleaning up TypeScript tech debt] [ 7 ]
120
+ - Tom MacWright: [ Knip: good software for cleaning up TypeScript tech debt] [ 11 ]
139
121
(2024-10-25)
140
- - [ มาทำความสะอาด Project โค้ดของเราด้วย Knip กัน] [ 8 ] (2024-10-22/Thai 🇹🇭)
141
- - Anthony Pena: [ Knip: l'ultime outil pour faire le ménage dans vos projets! ] [ 9 ]
142
- (2024-10-08/French 🇫🇷)
143
- - Taro: [ TypeScript/JavaScriptの不要なコードを削除するツール「Knip」の紹介] [ 10 ]
122
+ - [ มาทำความสะอาด Project โค้ดของเราด้วย Knip กัน] [ 12 ] (2024-10-22/Thai 🇹🇭)
123
+ - Anthony Pena: [ Knip: l'ultime outil pour faire le ménage dans vos
124
+ projets! ] [ 13 ] (2024-10-08/French 🇫🇷)
125
+ - Taro: [ TypeScript/JavaScriptの不要なコードを削除するツール「Knip」の紹介] [ 14 ]
144
126
(2024-07-25/Japanese 🇯🇵)
145
- - Maddy Miller: [ Using Knip to find dead code in a high-traffic git repo] [ 11 ]
127
+ - Maddy Miller: [ Using Knip to find dead code in a high-traffic git repo] [ 15 ]
146
128
(2023-09-17)
147
- - Josh Goldberg: [ Speeding Up Centered Part 4: Unused Code Bloat] [ 12 ]
129
+ - Josh Goldberg: [ Speeding Up Centered Part 4: Unused Code Bloat] [ 16 ]
148
130
(2023-08-21)
149
131
- Smashing Magazine: [ Knip: An Automated Tool For Finding Unused Files, Exports,
150
- And Dependencies] [ 13 ] (2023-08-14)
132
+ And Dependencies] [ 17 ] (2023-08-14)
151
133
- Effective TypeScript: [ Recommendation Update: ✂️ Use knip to detect dead code
152
- and types] [ 14 ] (2023-07-29)
134
+ and types] [ 18 ] (2023-07-29)
153
135
154
136
## 🧡 Testimonials
155
137
156
138
<Posts />
157
139
158
140
## Read More
159
141
160
- - [ Unused dependencies] [ 15 ]
161
- - [ Unused exports] [ 16 ]
162
-
163
- [ 1 ] : ./explanations/why-use-knip.md
164
- [ 2 ] : ./sponsors
165
- [ 3 ] : ./reference/plugins.md
166
- [ 4 ] : ./playground
167
- [ 5 ] : ./guides/troubleshooting.md
168
- [ 6 ] : https://www.jamesshopland.com
169
- [ 7 ] : https://macwright.com/2024/10/25/good-software-knip
170
- [ 8] :
142
+ - [ Unused dependencies] [ 19 ]
143
+ - [ Unused exports] [ 20 ]
144
+
145
+ [ 1 ] : https://www.npmjs.com/package/knip
146
+ [ 2 ] : https://img.shields.io/npm/v/knip?color=f56e0f
147
+ [ 3 ] : https://img.shields.io/npm/dm/knip?color=f56e0f
148
+ [ 4 ] : https://github.com/webpro-nl/knip
149
+ [ 5 ] : https://img.shields.io/github/stars/webpro-nl/knip?style=flat&color=f56e0f
150
+ [ 6 ] : ./sponsors
151
+ [ 7 ] : ./reference/plugins.md
152
+ [ 8 ] : ./playground
153
+ [ 9 ] : ./guides/troubleshooting.md
154
+ [ 10 ] : https://www.jamesshopland.com
155
+ [ 11 ] : https://macwright.com/2024/10/25/good-software-knip
156
+ [ 12] :
171
157
https://engineering.thinknet.co.th/%E0%B8%A1%E0%B8%B2%E0%B8%97%E0%B8%B3%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AA%E0%B8%B0%E0%B8%AD%E0%B8%B2%E0%B8%94-project-%E0%B9%82%E0%B8%84%E0%B9%89%E0%B8%94%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%A3%E0%B8%B2%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-knip-%E0%B8%81%E0%B8%B1%E0%B8%99-20dbd65f6b58
172
- [ 9 ] :
158
+ [ 13 ] :
173
159
https://k49.fr.nf/knip-l-ultime-outil-pour-faire-le-menage-dans-vos-projets/
174
- [ 10 ] : https://tech.basemachina.jp/entry/introduction-knip
175
- [ 11 ] : https://madelinemiller.dev/blog/knip-dead-code/
176
- [ 12 ] :
160
+ [ 14 ] : https://tech.basemachina.jp/entry/introduction-knip
161
+ [ 15 ] : https://madelinemiller.dev/blog/knip-dead-code/
162
+ [ 16 ] :
177
163
https://www.joshuakgoldberg.com/blog/speeding-up-centered-part-4-unused-code-bloat/
178
- [ 13 ] :
164
+ [ 17 ] :
179
165
https://www.smashingmagazine.com/2023/08/knip-automated-tool-find-unused-files-exports-dependencies/
180
- [ 14 ] : https://effectivetypescript.com/2023/07/29/knip/
181
- [ 15 ] : ./typescript/unused-dependencies.md
182
- [ 16 ] : ./typescript/unused-exports.md
166
+ [ 18 ] : https://effectivetypescript.com/2023/07/29/knip/
167
+ [ 19 ] : ./typescript/unused-dependencies.md
168
+ [ 20 ] : ./typescript/unused-exports.md
0 commit comments