winclean-cli 0.0.0-stage → 0.1.0

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 ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, winclean contributors
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
- # Temporary Holding Version
1
+ # winclean
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Windows temp and cache cleaner. Ships a self-contained `win32-x64` executable;
4
+ no Dart SDK required.
5
+
6
+ ## Install
7
+
8
+ ```powershell
9
+ npm install -g winclean-cli
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```powershell
15
+ winclean # interactive TUI: pick targets, watch progress, review results
16
+ winclean --dry-run # report what would be deleted
17
+ winclean --json # machine-readable output
18
+ winclean --quiet # print only the total
19
+ winclean --older-than 7d
20
+ ```
21
+
22
+ Run `winclean --help` for all options.
23
+
24
+ ## Safety
25
+
26
+ - Cleaning requires selected targets; nothing is deleted until you confirm.
27
+ - Protected paths (`SystemRoot`, `USERPROFILE`, `LOCALAPPDATA`, `APPDATA`,
28
+ `ProgramFiles`, `ProgramData`) are never cleaned.
29
+ - Windows Temp and Windows Update cache need an elevated shell.
30
+ - `--dry-run` previews without deleting.
31
+
32
+ ## Requirements
33
+
34
+ - Windows x64
35
+ - Node.js 18 or newer (only for the npm launcher)
36
+
37
+ The interactive TUI needs both stdin and stdout attached to a terminal.
38
+ Redirected or piped output uses plain text or JSON instead.
39
+
40
+ The executable is not code-signed. Windows Smart App Control may block
41
+ unsigned programs; if Windows blocks it, use a signed release when available.
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { spawn } = require('node:child_process');
5
+ const path = require('node:path');
6
+
7
+ const exe = path.join(__dirname, '..', 'vendor', 'winclean.exe');
8
+
9
+ const child = spawn(exe, process.argv.slice(2), { stdio: 'inherit' });
10
+
11
+ child.on('error', (error) => {
12
+ console.error(`winclean: failed to launch ${exe}: ${error.message}`);
13
+ process.exit(1);
14
+ });
15
+
16
+ child.on('close', (code) => {
17
+ process.exit(code === null ? 1 : code);
18
+ });
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "winclean-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Windows temp and cache cleaner with an interactive TUI",
5
+ "license": "BSD-3-Clause",
6
+ "author": "winclean contributors",
7
+ "bin": {
8
+ "winclean": "bin/winclean.js"
9
+ },
10
+ "files": [
11
+ "bin/winclean.js",
12
+ "vendor/winclean.exe",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "os": [
17
+ "win32"
18
+ ],
19
+ "cpu": [
20
+ "x64"
21
+ ],
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "keywords": [
26
+ "windows",
27
+ "cleaner",
28
+ "temp",
29
+ "cache",
30
+ "cli",
31
+ "tui",
32
+ "disk"
33
+ ],
34
+ "scripts": {
35
+ "prepack": "node scripts/check-artifact.js"
36
+ }
37
+ }
Binary file