devkill 0.12.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/LICENSE +21 -0
- package/README.es.md +253 -0
- package/README.id.md +238 -0
- package/README.md +377 -0
- package/README.pt.md +241 -0
- package/README.tr.md +242 -0
- package/lib/cli/cli.controller.d.ts +81 -0
- package/lib/cli/cli.controller.js +760 -0
- package/lib/cli/cli.controller.js.map +1 -0
- package/lib/cli/interfaces/cli-options.interface.d.ts +5 -0
- package/lib/cli/interfaces/cli-options.interface.js +2 -0
- package/lib/cli/interfaces/cli-options.interface.js.map +1 -0
- package/lib/cli/interfaces/command-keys.interface.d.ts +17 -0
- package/lib/cli/interfaces/command-keys.interface.js +2 -0
- package/lib/cli/interfaces/command-keys.interface.js.map +1 -0
- package/lib/cli/interfaces/config.interface.d.ts +17 -0
- package/lib/cli/interfaces/config.interface.js +2 -0
- package/lib/cli/interfaces/config.interface.js.map +1 -0
- package/lib/cli/interfaces/index.d.ts +11 -0
- package/lib/cli/interfaces/index.js +12 -0
- package/lib/cli/interfaces/index.js.map +1 -0
- package/lib/cli/interfaces/json-output.interface.d.ts +30 -0
- package/lib/cli/interfaces/json-output.interface.js +2 -0
- package/lib/cli/interfaces/json-output.interface.js.map +1 -0
- package/lib/cli/interfaces/key-press.interface.d.ts +7 -0
- package/lib/cli/interfaces/key-press.interface.js +2 -0
- package/lib/cli/interfaces/key-press.interface.js.map +1 -0
- package/lib/cli/interfaces/node-version.interface.d.ts +5 -0
- package/lib/cli/interfaces/node-version.interface.js +2 -0
- package/lib/cli/interfaces/node-version.interface.js.map +1 -0
- package/lib/cli/interfaces/stats.interface.d.ts +15 -0
- package/lib/cli/interfaces/stats.interface.js +2 -0
- package/lib/cli/interfaces/stats.interface.js.map +1 -0
- package/lib/cli/interfaces/ui-positions.interface.d.ts +5 -0
- package/lib/cli/interfaces/ui-positions.interface.js +2 -0
- package/lib/cli/interfaces/ui-positions.interface.js.map +1 -0
- package/lib/cli/interfaces/version.interface.d.ts +5 -0
- package/lib/cli/interfaces/version.interface.js +2 -0
- package/lib/cli/interfaces/version.interface.js.map +1 -0
- package/lib/cli/models/start-parameters.model.d.ts +7 -0
- package/lib/cli/models/start-parameters.model.js +25 -0
- package/lib/cli/models/start-parameters.model.js.map +1 -0
- package/lib/cli/services/console.service.d.ts +23 -0
- package/lib/cli/services/console.service.js +87 -0
- package/lib/cli/services/console.service.js.map +1 -0
- package/lib/cli/services/https.service.d.ts +4 -0
- package/lib/cli/services/https.service.js +32 -0
- package/lib/cli/services/https.service.js.map +1 -0
- package/lib/cli/services/index.d.ts +7 -0
- package/lib/cli/services/index.js +8 -0
- package/lib/cli/services/index.js.map +1 -0
- package/lib/cli/services/json-output.service.d.ts +20 -0
- package/lib/cli/services/json-output.service.js +101 -0
- package/lib/cli/services/json-output.service.js.map +1 -0
- package/lib/cli/services/results.service.d.ts +13 -0
- package/lib/cli/services/results.service.js +61 -0
- package/lib/cli/services/results.service.js.map +1 -0
- package/lib/cli/services/scan.service.d.ts +13 -0
- package/lib/cli/services/scan.service.js +79 -0
- package/lib/cli/services/scan.service.js.map +1 -0
- package/lib/cli/services/spinner.service.d.ts +9 -0
- package/lib/cli/services/spinner.service.js +27 -0
- package/lib/cli/services/spinner.service.js.map +1 -0
- package/lib/cli/services/ui.service.d.ts +17 -0
- package/lib/cli/services/ui.service.js +59 -0
- package/lib/cli/services/ui.service.js.map +1 -0
- package/lib/cli/services/update.service.d.ts +15 -0
- package/lib/cli/services/update.service.js +37 -0
- package/lib/cli/services/update.service.js.map +1 -0
- package/lib/cli/ui/base.ui.d.ts +28 -0
- package/lib/cli/ui/base.ui.js +49 -0
- package/lib/cli/ui/base.ui.js.map +1 -0
- package/lib/cli/ui/components/general.ui.d.ts +7 -0
- package/lib/cli/ui/components/general.ui.js +13 -0
- package/lib/cli/ui/components/general.ui.js.map +1 -0
- package/lib/cli/ui/components/header/header-ui.constants.d.ts +7 -0
- package/lib/cli/ui/components/header/header-ui.constants.js +7 -0
- package/lib/cli/ui/components/header/header-ui.constants.js.map +1 -0
- package/lib/cli/ui/components/header/header.ui.d.ts +18 -0
- package/lib/cli/ui/components/header/header.ui.js +96 -0
- package/lib/cli/ui/components/header/header.ui.js.map +1 -0
- package/lib/cli/ui/components/header/stats.ui.d.ts +25 -0
- package/lib/cli/ui/components/header/stats.ui.js +198 -0
- package/lib/cli/ui/components/header/stats.ui.js.map +1 -0
- package/lib/cli/ui/components/header/status.ui.d.ts +33 -0
- package/lib/cli/ui/components/header/status.ui.js +188 -0
- package/lib/cli/ui/components/header/status.ui.js.map +1 -0
- package/lib/cli/ui/components/help/help-command.ui.d.ts +9 -0
- package/lib/cli/ui/components/help/help-command.ui.js +61 -0
- package/lib/cli/ui/components/help/help-command.ui.js.map +1 -0
- package/lib/cli/ui/components/help/help.constants.d.ts +8 -0
- package/lib/cli/ui/components/help/help.constants.js +270 -0
- package/lib/cli/ui/components/help/help.constants.js.map +1 -0
- package/lib/cli/ui/components/help/help.ui.d.ts +30 -0
- package/lib/cli/ui/components/help/help.ui.js +176 -0
- package/lib/cli/ui/components/help/help.ui.js.map +1 -0
- package/lib/cli/ui/components/logs.ui.d.ts +24 -0
- package/lib/cli/ui/components/logs.ui.js +132 -0
- package/lib/cli/ui/components/logs.ui.js.map +1 -0
- package/lib/cli/ui/components/options.ui.d.ts +29 -0
- package/lib/cli/ui/components/options.ui.js +327 -0
- package/lib/cli/ui/components/options.ui.js.map +1 -0
- package/lib/cli/ui/components/profile-picker.ui.d.ts +25 -0
- package/lib/cli/ui/components/profile-picker.ui.js +117 -0
- package/lib/cli/ui/components/profile-picker.ui.js.map +1 -0
- package/lib/cli/ui/components/result-details.ui.d.ts +23 -0
- package/lib/cli/ui/components/result-details.ui.js +182 -0
- package/lib/cli/ui/components/result-details.ui.js.map +1 -0
- package/lib/cli/ui/components/results.ui.d.ts +86 -0
- package/lib/cli/ui/components/results.ui.js +620 -0
- package/lib/cli/ui/components/results.ui.js.map +1 -0
- package/lib/cli/ui/components/warning.ui.d.ts +12 -0
- package/lib/cli/ui/components/warning.ui.js +30 -0
- package/lib/cli/ui/components/warning.ui.js.map +1 -0
- package/lib/cli/ui/heavy.ui.d.ts +18 -0
- package/lib/cli/ui/heavy.ui.js +37 -0
- package/lib/cli/ui/heavy.ui.js.map +1 -0
- package/lib/cli/ui/index.d.ts +14 -0
- package/lib/cli/ui/index.js +15 -0
- package/lib/cli/ui/index.js.map +1 -0
- package/lib/constants/cli.constants.d.ts +14 -0
- package/lib/constants/cli.constants.js +138 -0
- package/lib/constants/cli.constants.js.map +1 -0
- package/lib/constants/index.d.ts +8 -0
- package/lib/constants/index.js +9 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/main.constants.d.ts +96 -0
- package/lib/constants/main.constants.js +79 -0
- package/lib/constants/main.constants.js.map +1 -0
- package/lib/constants/messages.constants.d.ts +31 -0
- package/lib/constants/messages.constants.js +37 -0
- package/lib/constants/messages.constants.js.map +1 -0
- package/lib/constants/options.constants.d.ts +6 -0
- package/lib/constants/options.constants.js +8 -0
- package/lib/constants/options.constants.js.map +1 -0
- package/lib/constants/os-service-map.constants.d.ts +10 -0
- package/lib/constants/os-service-map.constants.js +11 -0
- package/lib/constants/os-service-map.constants.js.map +1 -0
- package/lib/constants/result-descriptions.constants.d.ts +142 -0
- package/lib/constants/result-descriptions.constants.js +203 -0
- package/lib/constants/result-descriptions.constants.js.map +1 -0
- package/lib/constants/sort.result.d.ts +6 -0
- package/lib/constants/sort.result.js +22 -0
- package/lib/constants/sort.result.js.map +1 -0
- package/lib/constants/spinner.constants.d.ts +5 -0
- package/lib/constants/spinner.constants.js +88 -0
- package/lib/constants/spinner.constants.js.map +1 -0
- package/lib/constants/status.constants.d.ts +7 -0
- package/lib/constants/status.constants.js +9 -0
- package/lib/constants/status.constants.js.map +1 -0
- package/lib/constants/update.constants.d.ts +2 -0
- package/lib/constants/update.constants.js +3 -0
- package/lib/constants/update.constants.js.map +1 -0
- package/lib/constants/workers.constants.d.ts +14 -0
- package/lib/constants/workers.constants.js +16 -0
- package/lib/constants/workers.constants.js.map +1 -0
- package/lib/core/constants/global-ignored.constants.d.ts +1 -0
- package/lib/core/constants/global-ignored.constants.js +44 -0
- package/lib/core/constants/global-ignored.constants.js.map +1 -0
- package/lib/core/constants/index.d.ts +1 -0
- package/lib/core/constants/index.js +2 -0
- package/lib/core/constants/index.js.map +1 -0
- package/lib/core/constants/profiles.constants.d.ts +8 -0
- package/lib/core/constants/profiles.constants.js +138 -0
- package/lib/core/constants/profiles.constants.js.map +1 -0
- package/lib/core/devkill.d.ts +25 -0
- package/lib/core/devkill.js +129 -0
- package/lib/core/devkill.js.map +1 -0
- package/lib/core/index.d.ts +4 -0
- package/lib/core/index.js +5 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/interfaces/devkill.interface.d.ts +78 -0
- package/lib/core/interfaces/devkill.interface.js +2 -0
- package/lib/core/interfaces/devkill.interface.js.map +1 -0
- package/lib/core/interfaces/devkillrc-config.interface.d.ts +87 -0
- package/lib/core/interfaces/devkillrc-config.interface.js +12 -0
- package/lib/core/interfaces/devkillrc-config.interface.js.map +1 -0
- package/lib/core/interfaces/file-service.interface.d.ts +76 -0
- package/lib/core/interfaces/file-service.interface.js +2 -0
- package/lib/core/interfaces/file-service.interface.js.map +1 -0
- package/lib/core/interfaces/folder.interface.d.ts +89 -0
- package/lib/core/interfaces/folder.interface.js +2 -0
- package/lib/core/interfaces/folder.interface.js.map +1 -0
- package/lib/core/interfaces/index.d.ts +6 -0
- package/lib/core/interfaces/index.js +7 -0
- package/lib/core/interfaces/index.js.map +1 -0
- package/lib/core/interfaces/logger-service.interface.d.ts +59 -0
- package/lib/core/interfaces/logger-service.interface.js +2 -0
- package/lib/core/interfaces/logger-service.interface.js.map +1 -0
- package/lib/core/interfaces/npkill.interface.d.ts +78 -0
- package/lib/core/interfaces/npkill.interface.js +2 -0
- package/lib/core/interfaces/npkill.interface.js.map +1 -0
- package/lib/core/interfaces/npkillrc-config.interface.d.ts +87 -0
- package/lib/core/interfaces/npkillrc-config.interface.js +12 -0
- package/lib/core/interfaces/npkillrc-config.interface.js.map +1 -0
- package/lib/core/interfaces/profile.interface.d.ts +9 -0
- package/lib/core/interfaces/profile.interface.js +2 -0
- package/lib/core/interfaces/profile.interface.js.map +1 -0
- package/lib/core/interfaces/search-status.model.d.ts +35 -0
- package/lib/core/interfaces/search-status.model.js +48 -0
- package/lib/core/interfaces/search-status.model.js.map +1 -0
- package/lib/core/interfaces/services.interface.d.ts +26 -0
- package/lib/core/interfaces/services.interface.js +2 -0
- package/lib/core/interfaces/services.interface.js.map +1 -0
- package/lib/core/npkill.d.ts +25 -0
- package/lib/core/npkill.js +129 -0
- package/lib/core/npkill.js.map +1 -0
- package/lib/core/services/config/config-merger.d.ts +17 -0
- package/lib/core/services/config/config-merger.js +57 -0
- package/lib/core/services/config/config-merger.js.map +1 -0
- package/lib/core/services/config/config-validator.d.ts +3 -0
- package/lib/core/services/config/config-validator.js +43 -0
- package/lib/core/services/config/config-validator.js.map +1 -0
- package/lib/core/services/config/index.d.ts +4 -0
- package/lib/core/services/config/index.js +5 -0
- package/lib/core/services/config/index.js.map +1 -0
- package/lib/core/services/config/profile-validator.d.ts +6 -0
- package/lib/core/services/config/profile-validator.js +68 -0
- package/lib/core/services/config/profile-validator.js.map +1 -0
- package/lib/core/services/config/property-validators.d.ts +33 -0
- package/lib/core/services/config/property-validators.js +125 -0
- package/lib/core/services/config/property-validators.js.map +1 -0
- package/lib/core/services/config.service.d.ts +37 -0
- package/lib/core/services/config.service.js +100 -0
- package/lib/core/services/config.service.js.map +1 -0
- package/lib/core/services/files/files.service.d.ts +28 -0
- package/lib/core/services/files/files.service.js +207 -0
- package/lib/core/services/files/files.service.js.map +1 -0
- package/lib/core/services/files/files.worker.d.ts +1 -0
- package/lib/core/services/files/files.worker.js +286 -0
- package/lib/core/services/files/files.worker.js.map +1 -0
- package/lib/core/services/files/files.worker.service.d.ts +90 -0
- package/lib/core/services/files/files.worker.service.js +216 -0
- package/lib/core/services/files/files.worker.service.js.map +1 -0
- package/lib/core/services/files/index.d.ts +4 -0
- package/lib/core/services/files/index.js +5 -0
- package/lib/core/services/files/index.js.map +1 -0
- package/lib/core/services/files/unix-files.service.d.ts +9 -0
- package/lib/core/services/files/unix-files.service.js +28 -0
- package/lib/core/services/files/unix-files.service.js.map +1 -0
- package/lib/core/services/files/windows-files.service.d.ts +9 -0
- package/lib/core/services/files/windows-files.service.js +16 -0
- package/lib/core/services/files/windows-files.service.js.map +1 -0
- package/lib/core/services/index.d.ts +5 -0
- package/lib/core/services/index.js +6 -0
- package/lib/core/services/index.js.map +1 -0
- package/lib/core/services/logger.service.d.ts +22 -0
- package/lib/core/services/logger.service.js +84 -0
- package/lib/core/services/logger.service.js.map +1 -0
- package/lib/core/services/profiles.service.d.ts +54 -0
- package/lib/core/services/profiles.service.js +86 -0
- package/lib/core/services/profiles.service.js.map +1 -0
- package/lib/core/services/stream.service.d.ts +12 -0
- package/lib/core/services/stream.service.js +39 -0
- package/lib/core/services/stream.service.js.map +1 -0
- package/lib/dirname.d.ts +2 -0
- package/lib/dirname.js +6 -0
- package/lib/dirname.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/lib/main.d.ts +2 -0
- package/lib/main.js +19 -0
- package/lib/main.js.map +1 -0
- package/lib/utils/get-file-content.d.ts +1 -0
- package/lib/utils/get-file-content.js +6 -0
- package/lib/utils/get-file-content.js.map +1 -0
- package/lib/utils/is-safe-to-delete.d.ts +1 -0
- package/lib/utils/is-safe-to-delete.js +9 -0
- package/lib/utils/is-safe-to-delete.js.map +1 -0
- package/lib/utils/unit-conversions.d.ts +11 -0
- package/lib/utils/unit-conversions.js +54 -0
- package/lib/utils/unit-conversions.js.map +1 -0
- package/package.json +96 -0
package/README.tr.md
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://npkill.js.org/img/npkill-text-outlined.svg" width="320" alt="devkill logo" />
|
|
3
|
+
</p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<img alt="npm" src="https://img.shields.io/npm/dy/devkill.svg">
|
|
6
|
+
<a href="#donations"><img src="https://img.shields.io/badge/donate-<3-red" alt="Donations Badge"/></a>
|
|
7
|
+
<img alt="npm version" src="https://img.shields.io/npm/v/devkill.svg">
|
|
8
|
+
<img alt="NPM" src="https://img.shields.io/npm/l/devkill.svg">
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
### Birden fazla dilde eski ve büyük build ve cache klasörlerini kolayca bulun ve **silin** :sparkles:
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<img src="/docs/npkill-demo-0.10.0.gif" alt="devkill demo GIF" />
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
Bu araç, sisteminizdeki _node_modules_, Python sanal ortamları, derleme artefaktları ve daha fazlasını ve kapladıkları alanı listelemenizi sağlar. Daha sonra, hangilerini silmek istediğinizi seçerek yer açabilirsiniz. Yaşasın!
|
|
18
|
+
|
|
19
|
+
## i18n
|
|
20
|
+
|
|
21
|
+
Devkill dokümantasyonunu uluslararası hale getirmek için çaba gösteriyoruz. İşte mevcut çevirilerin listesi:
|
|
22
|
+
|
|
23
|
+
- [Español](./README.es.md)
|
|
24
|
+
- [Indonesian](./README.id.md)
|
|
25
|
+
- [Português](./README.pt.md)
|
|
26
|
+
- [Türkçe](./README.tr.md)
|
|
27
|
+
|
|
28
|
+
## İçindekiler
|
|
29
|
+
|
|
30
|
+
- [Özellikler](#features)
|
|
31
|
+
- [Kurulum](#installation)
|
|
32
|
+
- [Kullanım](#usage)
|
|
33
|
+
- [Seçenekler](#options)
|
|
34
|
+
- [Örnekler](#examples)
|
|
35
|
+
- [Yerel Kurulum](#setup-locally)
|
|
36
|
+
- [Yol Haritası](#roadmap)
|
|
37
|
+
- [Bilinen Hatalar](#known-bugs)
|
|
38
|
+
- [Katkıda Bulunma](#contributing)
|
|
39
|
+
- [Kahve Ismarlayın](#donations)
|
|
40
|
+
- [Lisans](#license)
|
|
41
|
+
|
|
42
|
+
<a name="features"></a>
|
|
43
|
+
|
|
44
|
+
# :heavy_check_mark: Özellikler
|
|
45
|
+
|
|
46
|
+
- **Çok dilli temizlik:** Node.js, Python, Rust, Java, C++, Unity ve daha fazlası için profiller — her biri silinmesi güvenli dizinlerin seçilmiş listeleriyle.
|
|
47
|
+
|
|
48
|
+
- **Alan Açın:** Makinenizde birikmiş, eski ve tozlu klasörlerden kurtulun.
|
|
49
|
+
|
|
50
|
+
- **Son Çalışma Alanı Kullanımı**: Çalışma alanındaki bir dosyayı en son ne zaman değiştirdiğinizi kontrol edin (bu, **last_mod** sütununda gösterilir).
|
|
51
|
+
|
|
52
|
+
- **Çok Hızlı:** Devkill TypeScript ile yazılmıştır, ancak aramalar düşük seviyede gerçekleştirilerek performans büyük ölçüde artırılır.
|
|
53
|
+
|
|
54
|
+
- **Kullanımı Kolay:** Uzun komutlara elveda deyin. Devkill kullanmak, bir profil seçmek, dizin listenizi okumak ve silmek için Del tuşuna basmak kadar basittir.
|
|
55
|
+
|
|
56
|
+
- **Düşük Bağımlılık:** Hiçbir bağımlılığı yok denecek kadar az.
|
|
57
|
+
|
|
58
|
+
<a name="installation"></a>
|
|
59
|
+
|
|
60
|
+
# :cloud: Kurulum
|
|
61
|
+
|
|
62
|
+
Kullanmak için gerçekten yüklemenize gerek yok!
|
|
63
|
+
Basitçe aşağıdaki komutu kullanabilirsiniz:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
$ npx devkill
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Ya da herhangi bir nedenle gerçekten yüklemek isterseniz:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
$ npm i -g devkill
|
|
73
|
+
# Unix kullanıcılarının komutu sudo ile çalıştırması gerekebilir. Dikkatli olun.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
> Devkill node>=18.18.0 gerektirir.
|
|
77
|
+
|
|
78
|
+
<a name="usage"></a>
|
|
79
|
+
|
|
80
|
+
# :clipboard: Kullanım
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
$ npx devkill
|
|
84
|
+
# Ya da global olarak yüklüyse sadece devkill kullanabilirsiniz.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Varsayılan olarak, devkill `devkill` komutunun çalıştırıldığı dizinden başlayarak klasörleri tarar.
|
|
88
|
+
|
|
89
|
+
Listelenen klasörler arasında <kbd>↓</kbd> ve <kbd>↑</kbd> tuşlarıyla gezinebilir, seçili klasörü silmek için <kbd>Space</kbd> veya <kbd>Del</kbd> tuşlarını kullanabilirsiniz.
|
|
90
|
+
Ayrıca sonuçlar arasında gezinmek için <kbd>j</kbd> ve <kbd>k</kbd> tuşlarını da kullanabilirsiniz.
|
|
91
|
+
|
|
92
|
+
Seçili sonucun bulunduğu klasörü açmak için <kbd>o</kbd> tuşuna basabilirsiniz.
|
|
93
|
+
|
|
94
|
+
Çıkmak için, <kbd>Q</kbd> ya da <kbd>Ctrl</kbd> + <kbd>C</kbd>.
|
|
95
|
+
|
|
96
|
+
**Önemli!** Sisteme kurulu bazı uygulamaların çalışması için dizinlerine ihtiyacı vardır ve bu klasörlerin silinmesi uygulamaların bozulmasına yol açabilir. Devkill, dikkatli olmanız için bu klasörleri :warning: simgesiyle vurgulayacaktır.
|
|
97
|
+
|
|
98
|
+
<a name="options"></a>
|
|
99
|
+
|
|
100
|
+
## Seçenekler
|
|
101
|
+
|
|
102
|
+
| ARGÜMAN | AÇIKLAMA |
|
|
103
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
104
|
+
| -p, --profiles | Kullanılacak [profili](./docs/profiles.md) seçin. Varsayılan: **node**. |
|
|
105
|
+
| --config | Özel .devkillrc yapılandırma dosyasının yolu. |
|
|
106
|
+
| -d, --directory | Aramaya başlanacak dizini ayarlayın. Varsayılan başlangıç noktası . olarak belirlenmiştir. |
|
|
107
|
+
| -D, --delete-all | Bulunan tüm klasörleri otomatik olarak siler. `-x` ile birlikte kullanılması önerilir. |
|
|
108
|
+
| -e, --hide-errors | Varsa hataları gizler |
|
|
109
|
+
| -E, --exclude | Aramadan hariç tutulacak dizinleri belirtin. Örnek: "ignore1, ignore2" |
|
|
110
|
+
| -f, --full | Aramaya kullanıcının ev dizininden başlayın. |
|
|
111
|
+
| --size-unit | Klasör boyutlarını görüntülemek için birim. _(Mevcut: **auto**, mb, gb)_ |
|
|
112
|
+
| -h, --help, ? | Bu yardım sayfasını göster ve çık. |
|
|
113
|
+
| -nu, --no-check-update | Başlangıçta güncellemeleri kontrol etme. |
|
|
114
|
+
| -s, --sort | Sonuçları şu kriterlere göre sırala: `size`, `path` veya `age` |
|
|
115
|
+
| -t, --targets | Profilleri devre dışı bırak ve aranacak dizin adlarını belirt. Virgülle ayır. Örn. `-t node_modules,.cache`. |
|
|
116
|
+
| -x, --exclude-sensitive | Hassas dizinleri hariç tut. |
|
|
117
|
+
| --dry-run | Hiçbir şeyi silmez (rastgele bir gecikme ile simüle eder). |
|
|
118
|
+
| --json | Tarama sonunda sonuçları JSON formatında çıktıla. |
|
|
119
|
+
| --json-stream | Sonuçları JSON streaming formatında çıktıla (satır başına bir nesne). |
|
|
120
|
+
| -v, --version | devkill sürümünü gösterir. |
|
|
121
|
+
|
|
122
|
+
<a name="examples"></a>
|
|
123
|
+
|
|
124
|
+
## Örnekler
|
|
125
|
+
|
|
126
|
+
- _projects_ dizininizdeki **node_modules** klasörlerini arayın:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
devkill -d ~/projects
|
|
130
|
+
|
|
131
|
+
# diğer alternatif:
|
|
132
|
+
cd ~/projects
|
|
133
|
+
devkill
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
- Projelerinizde Node.js ve Python taraması yapın:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
devkill -d ~/projects --profiles node,python
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
- Yedeklerinize gizlice karışmış tüm klasörleri otomatik olarak silin:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
devkill -d ~/backups/ --delete-all
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
<a name="setup-locally"></a>
|
|
149
|
+
|
|
150
|
+
# :pager: Yerel Kurulum
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
# -- Öncelikle, repoyu klonlayın.
|
|
154
|
+
git clone https://github.com/zaldih/npkill.git
|
|
155
|
+
|
|
156
|
+
# -- Dizin içine gidin
|
|
157
|
+
cd npkill
|
|
158
|
+
|
|
159
|
+
# -- Bağımlılıkları yükleyin
|
|
160
|
+
npm install
|
|
161
|
+
|
|
162
|
+
# -- Ve çalıştırın!
|
|
163
|
+
npm run start
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# -- Eğer bazı parametrelerle çalıştırmak istiyorsanız, aşağıdaki örnekte olduğu gibi "--" eklemeniz gerekir:
|
|
167
|
+
npm run start -- -f -e
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
<a name="roadmap"></a>
|
|
171
|
+
|
|
172
|
+
# :crystal_ball: Yol Haritası
|
|
173
|
+
|
|
174
|
+
- [x] 0.1.0 yayınla!
|
|
175
|
+
- [x] Kodu geliştir
|
|
176
|
+
- [x] Performansı iyileştir
|
|
177
|
+
- [ ] Performansı daha da iyileştir!
|
|
178
|
+
- [x] Sonuçları boyuta ve yola göre sırala
|
|
179
|
+
- [x] Diğer türde dizinlerin (hedeflerin) aranmasına izin ver
|
|
180
|
+
- [x] Çok dilli profiller (node, python, rust, java, vb.)
|
|
181
|
+
- [x] Başlangıçta interaktif profil seçici
|
|
182
|
+
- [ ] Daha minimalist bir modül olması için bağımlılıkları azalt
|
|
183
|
+
- [ ] Belirli bir süredir kullanılmayan dizinlere göre filtreleme yapmaya izin ver
|
|
184
|
+
- [ ] Dizinleri ağaç biçiminde göstermek için bir seçenek oluştur
|
|
185
|
+
- [x] Bazı menüler ekle
|
|
186
|
+
- [x] Log servisi ekle
|
|
187
|
+
- [ ] Periyodik ve otomatik temizlik (?)
|
|
188
|
+
|
|
189
|
+
<a name="known-bugs"></a>
|
|
190
|
+
|
|
191
|
+
# :bug: Bilinen Hatalar :bug:
|
|
192
|
+
|
|
193
|
+
- Bazen klasör silinirken CLI kilitlenebilir.
|
|
194
|
+
- Özellikle yol (path) bazında sıralama, çok sayıda olduğunda terminali yavaşlatabilir.
|
|
195
|
+
- Bazen, boyut hesaplamaları olması gerekenden daha yüksek çıkabilir.
|
|
196
|
+
- (ÇÖZÜLDÜ) Yüksek seviyeli dizinlerden arama yaparken performans sorunları yaşanabilir.
|
|
197
|
+
- (ÇÖZÜLDÜ) Bazen CLI güncellenirken metinler bozuluyor.
|
|
198
|
+
- (ÇÖZÜLDÜ) Dizinlerin boyutunu analiz etmek olması gerekenden daha uzun sürüyor.
|
|
199
|
+
|
|
200
|
+
> Eğer herhangi bir hata bulursanız, çekinmeden bir issue açın :)
|
|
201
|
+
|
|
202
|
+
<a name="contributing"></a>
|
|
203
|
+
|
|
204
|
+
# :revolving_hearts: Katkıda Bulunma
|
|
205
|
+
|
|
206
|
+
Katkıda bulunmak isterseniz [CONTRIBUTING.md](.github/CONTRIBUTING.md) dosyasını inceleyin.
|
|
207
|
+
|
|
208
|
+
<a name="donations"></a>
|
|
209
|
+
|
|
210
|
+
# :coffee: Bize bir kahve ısmarlayın
|
|
211
|
+
|
|
212
|
+
<img align="right" width="300" src="https://npkill.js.org/img/cat-donation-cup.png">
|
|
213
|
+
Boş zamanlarımızda, programlama sektörüne olan tutkumuz nedeniyle devkill'i geliştirdik.
|
|
214
|
+
Gelecekte, tamamen buna odaklanmak istiyoruz ama önümüzde uzun bir yol var.
|
|
215
|
+
|
|
216
|
+
Yine de işlerimizi yapmaya devam edeceğiz, ancak bağışlar yaptığımız işi desteklemenin birçok yolundan sadece biridir.
|
|
217
|
+
|
|
218
|
+
<span class="badge-opencollective"><a href="https://opencollective.com/npkill/contribute" title="Donate to this project using Open Collective"><img src="https://img.shields.io/badge/open%20collective-donate-green.svg" alt="Open Collective donate button" /></a></span>
|
|
219
|
+
|
|
220
|
+
### Teşekkürler!!
|
|
221
|
+
|
|
222
|
+
## Destekçilerimize kocaman teşekkürler :heart:
|
|
223
|
+
|
|
224
|
+
<a href="https://opencollective.com/npkill#backers" target="_blank"><img width="535" src="https://opencollective.com/npkill/tiers/backer.svg?width=535"></a>
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
### Kripto alternatifi
|
|
229
|
+
|
|
230
|
+
- btc: 1ML2DihUoFTqhoQnrWy4WLxKbVYkUXpMAX
|
|
231
|
+
- bch: 1HVpaicQL5jWKkbChgPf6cvkH8nyktVnVk
|
|
232
|
+
- eth: 0x7668e86c8bdb52034606db5aa0d2d4d73a0d4259
|
|
233
|
+
|
|
234
|
+
<a name="license"></a>
|
|
235
|
+
|
|
236
|
+
# :scroll: Lisans
|
|
237
|
+
|
|
238
|
+
MIT © [Nya García Gallardo](https://github.com/NyaGarcia) and [Juan Torres Gómez](https://github.com/zaldih)
|
|
239
|
+
|
|
240
|
+
:cat::baby_chick:
|
|
241
|
+
|
|
242
|
+
---
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ConsoleService, ResultsService, SpinnerService, UpdateService } from './services/index.js';
|
|
2
|
+
import type { ConfigService, Devkill, ProfilesService } from '../core/index.js';
|
|
3
|
+
import type { ScanStatus } from '../core/interfaces/search-status.model.js';
|
|
4
|
+
import type { LoggerService } from '../core/services/logger.service.js';
|
|
5
|
+
import type { JsonOutputService } from './services/json-output.service.js';
|
|
6
|
+
import type { ScanService } from './services/scan.service.js';
|
|
7
|
+
import type { UiService } from './services/ui.service.js';
|
|
8
|
+
export declare class CliController {
|
|
9
|
+
private readonly stdout;
|
|
10
|
+
private readonly npkill;
|
|
11
|
+
private readonly logger;
|
|
12
|
+
private readonly searchStatus;
|
|
13
|
+
private readonly resultsService;
|
|
14
|
+
private readonly spinnerService;
|
|
15
|
+
private readonly consoleService;
|
|
16
|
+
private readonly updateService;
|
|
17
|
+
private readonly uiService;
|
|
18
|
+
private readonly scanService;
|
|
19
|
+
private readonly jsonOutputService;
|
|
20
|
+
private readonly profilesService;
|
|
21
|
+
private readonly configService;
|
|
22
|
+
private readonly config;
|
|
23
|
+
private profilesExplicitlySet;
|
|
24
|
+
private searchStart;
|
|
25
|
+
private searchDuration;
|
|
26
|
+
private uiHeader;
|
|
27
|
+
private uiGeneral;
|
|
28
|
+
private uiStats;
|
|
29
|
+
private uiStatus;
|
|
30
|
+
private uiResults;
|
|
31
|
+
private uiLogs;
|
|
32
|
+
private uiWarning;
|
|
33
|
+
private activeComponent;
|
|
34
|
+
constructor(stdout: NodeJS.WriteStream, npkill: Devkill, logger: LoggerService, searchStatus: ScanStatus, resultsService: ResultsService, spinnerService: SpinnerService, consoleService: ConsoleService, updateService: UpdateService, uiService: UiService, scanService: ScanService, jsonOutputService: JsonOutputService, profilesService: ProfilesService, configService: ConfigService);
|
|
35
|
+
init(): void;
|
|
36
|
+
private showProfilePicker;
|
|
37
|
+
private showDeleteAllWarning;
|
|
38
|
+
private initUi;
|
|
39
|
+
private openOptions;
|
|
40
|
+
private openResultsDetails;
|
|
41
|
+
private loadConfigFile;
|
|
42
|
+
private parseArguments;
|
|
43
|
+
private showErrorPopup;
|
|
44
|
+
private invalidSortParam;
|
|
45
|
+
private showHelp;
|
|
46
|
+
private showProgramVersion;
|
|
47
|
+
private isValidColor;
|
|
48
|
+
private isValidSortParam;
|
|
49
|
+
private isValidSizeUnit;
|
|
50
|
+
private invalidSizeUnitParam;
|
|
51
|
+
private getVersion;
|
|
52
|
+
private prepareScreen;
|
|
53
|
+
private checkRequirements;
|
|
54
|
+
private checkScreenRequirements;
|
|
55
|
+
private checkFileRequirements;
|
|
56
|
+
private checkVersion;
|
|
57
|
+
private showUpdateMessage;
|
|
58
|
+
private isTerminalTooSmall;
|
|
59
|
+
private printFoldersSection;
|
|
60
|
+
private setupEventsListener;
|
|
61
|
+
private keyPress;
|
|
62
|
+
private scan;
|
|
63
|
+
private initializeScan;
|
|
64
|
+
private scanInJson;
|
|
65
|
+
private scanSubscription;
|
|
66
|
+
private scanInUiMode;
|
|
67
|
+
private setupJsonModeSignalHandlers;
|
|
68
|
+
private processNodeFolderForUi;
|
|
69
|
+
private processFolderStatsForUi;
|
|
70
|
+
private finishFolderStats;
|
|
71
|
+
private completeSearch;
|
|
72
|
+
private setSearchDuration;
|
|
73
|
+
private isQuitKey;
|
|
74
|
+
private exitWithError;
|
|
75
|
+
private exitGracefully;
|
|
76
|
+
private quit;
|
|
77
|
+
private resetConsoleState;
|
|
78
|
+
private printExitMessage;
|
|
79
|
+
private deleteFolder;
|
|
80
|
+
private newError;
|
|
81
|
+
}
|