super-nvm 0.0.0-stage → 1.0.1

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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v14.21.3
package/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Super NVM Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
11
+ ---
12
+
13
+ ### Third-Party Software Attribution & Open-Source Acknowledgements
14
+
15
+ Super NVM is an independent open-source GUI frontend and companion client that interacts with the following open-source projects:
16
+
17
+ 1. **NVM for Windows (nvm-windows)**
18
+ - Project: https://github.com/nvm-windows/nvm
19
+ - Author: Corey Butler (Author Software)
20
+ - License: MIT License
21
+ - Relationship: Super NVM provides an graphical interface and taskbar companion for NVM for Windows. It does not replace or bundle closed-source components of nvm-windows.
22
+
23
+ 2. **Node.js**
24
+ - Project: https://nodejs.org
25
+ - Organization: OpenJS Foundation
26
+ - License: MIT License / Node.js license terms
27
+ - Relationship: Node.js versions, release feeds, and binary downloads are provided by the official Node.js project.
package/README.md CHANGED
@@ -1,3 +1,241 @@
1
- # Temporary Holding Version
1
+ # ⚡ Super NVM — The Modern Visual Node.js Manager for Windows
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
+ <div align="center">
4
+
5
+ <img src="resources/nvm-icon.png" width="110" height="110" alt="Super NVM Logo" />
6
+ <br><br>
7
+
8
+ ![Platform](https://img.shields.io/badge/Platform-Windows%2010%20%7C%2011-0078D6?style=for-the-badge&logo=windows&logoColor=white)
9
+ ![Node.js](https://img.shields.io/badge/Node.js-All%20Versions-339933?style=for-the-badge&logo=nodedotjs&logoColor=white)
10
+ ![npm](https://img.shields.io/npm/v/super-nvm?style=for-the-badge&logo=npm&color=CB3837)
11
+ ![VS Code](https://img.shields.io/badge/VS%20Code-Compatible-007ACC?style=for-the-badge&logo=visualstudiocode&logoColor=white)
12
+ ![Cursor](https://img.shields.io/badge/Cursor-Compatible-000000?style=for-the-badge&logoColor=white)
13
+ ![Antigravity](https://img.shields.io/badge/Google%20Antigravity-Compatible-4285F4?style=for-the-badge&logo=google&logoColor=white)
14
+ ![License](https://img.shields.io/badge/License-MIT-success?style=for-the-badge)
15
+
16
+ <p align="center">
17
+ <strong>Switch, install, migrate, and inspect Node.js versions with 1 click across VS Code, Cursor, Google Antigravity IDE, WebStorm, and your Windows Taskbar.</strong>
18
+ </p>
19
+
20
+ [📥 Download Latest Release](../../releases) • [📦 Zero-Prerequisites Architecture](#-zero-prerequisites-architecture) • [🔧 How It Works Without NVM](#-how-it-works-without-nvm-installed) • [🎯 Multi-Editor Setup](#-supported-editors--environments) • [💡 Pain Points Solved](#-the-pain-points-super-nvm-solves) • [🏷️ Attribution & Licensing](#-attribution-origin--ownership-transparency)
21
+
22
+ </div>
23
+
24
+ ---
25
+
26
+ ## 💡 The Pain Points Super NVM Solves
27
+
28
+ Windows developers managing multiple Node.js environments frequently face frustrating bottlenecks with command-line tools:
29
+
30
+ | ❌ The Traditional CLI Pain Point | ⚡ The Super NVM Graphical Solution |
31
+ | :--- | :--- |
32
+ | 🔴 **Manual Command Memorization**<br>Constant terminal switching to run `nvm list`, `nvm use <ver>`, and `nvm install <ver>`. | 🟢 **1-Click Version Switcher**<br>Click any installed version card in the visual dashboard or status bar menu to activate it instantly. |
33
+ | 🔴 **Abandoned Global Packages**<br>Installing a new Node version loses all global CLIs (`pnpm`, `yarn`, `turbo`, `nest`, `typescript`). | 🟢 **Global Package Migrator**<br>Inspect packages installed in any previous Node version and migrate them to your active version in 1 click. |
34
+ | 🔴 **Zero Editor Visibility**<br>Editors provide no visual indication of which Node version is currently active system-wide. | 🟢 **Live Status Bar & Activity Bar**<br>Displays `⚡ Node v24.22.1` directly in your editor status bar with a 0.1s quick-pick menu. |
35
+ | 🔴 **Silent Disk Bloat**<br>Unused Node versions and stale release downloads silently consume gigabytes in `%LOCALAPPDATA%`. | 🟢 **Visual Storage & Cache Cleaner**<br>View real-time disk consumption per Node version and purge download caches with a single click. |
36
+ | 🔴 **Workspace Version Mismatches**<br>Running projects with incompatible Node versions causes unexpected build or runtime failures. | 🟢 **Smart Workspace Detection**<br>Detects `.nvmrc`, `.node-version`, or `package.json` engines on project open and prompts or auto-switches. |
37
+ | 🔴 **Locked into Single Editor Ecosystems**<br>Most extensions only work in VS Code, abandoning JetBrains, Sublime, or Neovim users. | 🟢 **Universal Multi-Editor & Desktop Tray**<br>Native extension for **VS Code**, **Cursor**, **Antigravity IDE**, plus a **Windows Taskbar Tray** for all other IDEs. |
38
+
39
+ ---
40
+
41
+ ## 📦 Zero-Prerequisites Architecture
42
+
43
+ Super NVM is a **completely standalone, self-sufficient Node.js Version Manager for Windows**:
44
+
45
+ * ⚡ **100% Zero-Dependency**: Super NVM operates autonomously out of the box. You **do not need to install NVM for Windows**, Python, Git, or any external CLIs.
46
+ * 🚀 **Built-in Native Engine**: Directly downloads official Node.js releases from [nodejs.org](https://nodejs.org), extracts them on the fly, and manages directory junctions without requiring administrator privileges.
47
+ * 🔄 **Existing NVM Compatible**: If you already have NVM for Windows installed on your PC, Super NVM automatically detects and manages your existing versions alongside native ones.
48
+
49
+ ---
50
+
51
+ ### 🔧 How It Works Without NVM Installed
52
+
53
+ A common question is: *"How does Super NVM download, switch, and execute Node.js versions if NVM for Windows is not installed on my PC?"*
54
+
55
+ Super NVM does not depend on the third-party `nvm.exe` binary. Instead, it embeds its own **Native Management Engine** that interacts directly with the Windows filesystem and official Node.js distribution servers:
56
+
57
+ ```
58
+ [ nodejs.org Releases API ]
59
+ │ (1. Direct HTTPS Download)
60
+ ▼
61
+ [ %LOCALAPPDATA%\SuperNVM\versions\v22.12.0 ]
62
+ │
63
+ │ (2. Admin-Free Directory Junction)
64
+ ▼
65
+ [ %LOCALAPPDATA%\SuperNVM\current ] ◄──── Added to User PATH (3. Instant CLI availability)
66
+ │
67
+ ├─► node.exe (Active Version)
68
+ └─► npm.cmd / npx.cmd
69
+ ```
70
+
71
+ #### 1. Direct Official Downloads & Extraction
72
+ When you click **Install** in the Super NVM Dashboard:
73
+ - Super NVM queries `https://nodejs.org/dist/index.json` directly over HTTPS to retrieve verified releases.
74
+ - It streams the official Windows 64-bit binary archive (`node-v<version>-win-x64.zip`) with live progress reporting.
75
+ - It unpacks the distribution directly into:
76
+ ```text
77
+ %LOCALAPPDATA%\SuperNVM\versions\v<version>\
78
+ ```
79
+ *(Extracted using built-in Windows `tar` or PowerShell `Expand-Archive`, requiring zero extra tools).*
80
+
81
+ #### 2. Admin-Free Version Switching (NTFS Directory Junctions)
82
+ Traditional NVM for Windows creates symlinks inside `C:\Program Files\nodejs`, which triggers Windows UAC security prompts and requires Administrator privileges. Super NVM solves this cleanly:
83
+ - It maintains an NTFS Directory Junction at:
84
+ ```text
85
+ %LOCALAPPDATA%\SuperNVM\current
86
+ ```
87
+ - Because this link resides inside your user profile directory (`%LOCALAPPDATA%`), Windows allows creating and redirecting junctions **without administrator rights**.
88
+ - Switching Node versions takes only **~0.1 seconds**: Super NVM simply repoints the junction to `%LOCALAPPDATA%\SuperNVM\versions\v<target-version>`.
89
+
90
+ #### 3. Automatic User PATH Configuration
91
+ - On first version activation, Super NVM registers `%LOCALAPPDATA%\SuperNVM\current` into your **User PATH** environment variable via Windows PowerShell (`[Environment]::SetEnvironmentVariable`).
92
+ - Any terminal session—whether PowerShell, Windows Command Prompt, Git Bash, or internal IDE terminals—instantly recognizes `node -v`, `npm -v`, and `npx` without rebooting your computer.
93
+
94
+ #### 4. Editor Extension Self-Hosting
95
+ - In **Google Antigravity IDE**, **Microsoft VS Code**, and **Cursor**, extensions execute inside the editor's embedded runtime (Extension Host).
96
+ - This means you can install Super NVM on a fresh Windows PC that has **no Node.js and no NVM installed whatsoever**, open your IDE, and use Super NVM to download and set up your initial Node version in one click!
97
+
98
+ | Capability | Traditional NVM for Windows | ⚡ Super NVM Native Engine |
99
+ | :--- | :--- | :--- |
100
+ | **Prerequisites** | Requires installing NVM for Windows installer | **None** — 100% self-contained |
101
+ | **Administrator Rights** | Required for switching versions in `Program Files` | **Not required** — user-level NTFS junctions |
102
+ | **Release Downloads** | Limited CLI terminal feedback | Direct HTTPS streaming with visual progress bar |
103
+ | **Editor Status Bar** | None | Live version display + 1-click switch menu |
104
+ | **Global Package Migration** | Manual `npm install -g ...` for each package | 1-click visual selection & automated migration |
105
+
106
+ ---
107
+
108
+ ## 🎯 Supported Editors & Environments
109
+
110
+ Super NVM offers unified Node management across your entire development stack:
111
+
112
+ ### 1. 🚀 Google Antigravity IDE
113
+ - Install the `.vsix` extension package via:
114
+ ```powershell
115
+ & "$env:LOCALAPPDATA\Programs\Antigravity IDE\bin\antigravity-ide.cmd" --install-extension super-nvm-1.0.0.vsix
116
+ ```
117
+ - Or run the included `install-all-editors.bat` script to automatically detect Antigravity IDE and install with one click!
118
+
119
+ ### 2. 💻 Microsoft Visual Studio Code & Cursor IDE
120
+ - Install via command line:
121
+ ```powershell
122
+ code --install-extension super-nvm-1.0.0.vsix
123
+ cursor --install-extension super-nvm-1.0.0.vsix
124
+ ```
125
+ - Or install via UI: Extensions (`Ctrl + Shift + X`) ➔ `...` menu ➔ **Install from VSIX...** ➔ Select `super-nvm-1.0.0.vsix`.
126
+
127
+ ### 3. 🌊 Windsurf & VSCodium
128
+ - Fully compatible with any VS Code-compatible editor. Run `install-all-editors.bat` to detect and install automatically.
129
+
130
+ ### 4. ☕ JetBrains (WebStorm, IntelliJ IDEA, PyCharm), Sublime Text, & Neovim
131
+ - Double-click **`launch-tray.bat`** to enable the **Windows Taskbar Tray Companion**.
132
+ - A discrete Node crest icon will appear in your system notification tray near the Windows clock.
133
+ - **Right-click** the tray icon to switch active Node versions in 0.5 seconds!
134
+ - Because Super NVM updates Windows system symlinks globally, your WebStorm terminal, PowerShell, and Neovim immediately inherit the active Node version.
135
+
136
+ ---
137
+
138
+ ## 📥 How to Install & Run Super NVM
139
+
140
+ Super NVM can be run in seconds via NPX, installed globally via NPM, or downloaded as an editor extension and desktop package:
141
+
142
+ ### Method 1: Instant Launch via NPX (Zero Download Required)
143
+ Run directly from any terminal without manual setup:
144
+ ```bash
145
+ # 🚀 1. Auto-detect all editors and install the Super NVM extension:
146
+ npx super-nvm --install-extension
147
+
148
+ # 🌐 2. Or launch the visual browser dashboard immediately:
149
+ npx super-nvm
150
+ ```
151
+
152
+ ### Method 2: Global NPM Installation
153
+ Install Super NVM as a system-wide developer tool on your PC:
154
+ ```bash
155
+ npm install -g super-nvm
156
+ ```
157
+ - Run `super-nvm` anywhere to open the visual web dashboard (`http://localhost:4321`).
158
+ - Run `super-nvm --install-extension` (or `super-nvm -i`) to automatically inject the extension into VS Code, Antigravity IDE, and Cursor!
159
+
160
+ ### Method 3: 1-Click Multi-Editor Batch Installer (GitHub Release)
161
+ 1. Download **`super-nvm-1.0.0.vsix`** and **`install-all-editors.bat`** from [GitHub Releases](../../releases).
162
+ 2. Double-click **`install-all-editors.bat`**.
163
+ 3. The script automatically detects **Google Antigravity IDE**, **VS Code**, **Cursor**, **Windsurf**, and **VSCodium** on the machine and installs Super NVM into all of them at once!
164
+
165
+ ### Method 4: Standalone Desktop Web Dashboard + System Tray
166
+ 1. Download **`super-nvm-portable.zip`** from [GitHub Releases](../../releases).
167
+ 2. Extract to any folder.
168
+ 3. Double-click **`launch-ui.bat`** to open the web dashboard (`http://localhost:4321`).
169
+ 4. Double-click **`launch-tray.bat`** for right-click taskbar switching.
170
+
171
+ ### Method 5: Run from Source
172
+ ```bash
173
+ git clone https://github.com/pratik-maurya/Super-nvm.git
174
+ cd super-nvm
175
+ npm install
176
+ npm run compile
177
+ npm start
178
+ ```
179
+
180
+ ---
181
+
182
+ ## 🚀 Key Features Walkthrough
183
+
184
+ ### ⚡ 1-Click Version Switcher
185
+ - View all installed Node versions in clean, modern dark cards.
186
+ - Instantly switch the active Node version without typing commands.
187
+ - Accurate single-active-version tracking backed directly by NVM's system state.
188
+
189
+ ### 📦 Remote Releases Explorer
190
+ - Live table of 800+ official Node.js releases fetched securely from nodejs.org.
191
+ - Filter by **LTS** (Jod, Iron, Hydrogen), **All**, or **Security** patches.
192
+ - Click `Install` on any release row to trigger a clean native background install.
193
+
194
+ ### 🔄 Global Package Migrator
195
+ - Clicking **Packages** on any Node version lists its globally installed CLIs.
196
+ - Check off the packages you need (`yarn`, `pnpm`, `turbo`, `typescript`) and click **Migrate Selected Packages** to install them into your active Node version automatically.
197
+
198
+ ### 🧹 Storage & Disk Cache Cleaner
199
+ - Real-time disk calculation showing the exact space occupied by each installed Node version.
200
+ - 1-click **Clean NVM Cache** button to reclaim gigabytes of temp downloads.
201
+
202
+ ### 🔔 Smart Project Auto-Switch
203
+ - Automatically inspects workspaces for `.nvmrc`, `.node-version`, or `package.json` engines.
204
+ - Provides a subtle notification or silent auto-switch when opening project folders.
205
+
206
+ ---
207
+
208
+ ## ⌨️ Keyboard Shortcuts
209
+
210
+ Speed up your workflow across VS Code, Cursor, and Google Antigravity IDE:
211
+
212
+ | Shortcut | Action | Scope |
213
+ | :--- | :--- | :--- |
214
+ | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd>, <kbd>N</kbd> | **Open Super NVM Dashboard** | Global in Editor |
215
+ | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd>, <kbd>V</kbd> | **Quick Switch Node Version** | Global in Editor |
216
+ | <kbd>/</kbd> | **Focus Search Filter** | Inside Dashboard |
217
+ | <kbd>Esc</kbd> | **Close Active Dialog / Modal** | Inside Dashboard |
218
+
219
+ *(On macOS, replace <kbd>Ctrl</kbd> with <kbd>Cmd</kbd>)*
220
+
221
+ ---
222
+
223
+ ## 🏷️ Attribution, Origin & Ownership Transparency
224
+
225
+ To ensure complete clarity and compliance with all open-source licensing:
226
+
227
+ * **Node.js Releases & Metadata**:
228
+ Release metadata, download links, and Node.js binaries originate from the official [Node.js project](https://nodejs.org) maintained by the OpenJS Foundation under the MIT/Node License.
229
+ * **NVM Compatibility**:
230
+ Super NVM includes its own standalone native engine and also supports optional interoperability with [NVM for Windows](https://github.com/nvm-windows/nvm) by Corey Butler / Author Software (MIT License) if installed on your system.
231
+ * **Super NVM Client Architecture**:
232
+ The user interface, status bar integration, webview dashboard, cross-editor installer scripts, taskbar tray companion, native junction switcher, and package migration logic are original open-source components developed for Super NVM and distributed freely under the [MIT License](LICENSE).
233
+ * **Independence Statement**:
234
+ Super NVM is an independent open-source project. It does not claim trademark ownership of NVM for Windows or Node.js.
235
+
236
+ ---
237
+
238
+ ## 📄 License
239
+
240
+ This project is licensed under the [MIT License](LICENSE).
241
+ Feel free to use, modify, distribute, and contribute!
@@ -0,0 +1,81 @@
1
+ # Super NVM - Universal Multi-Editor Installer
2
+ $ErrorActionPreference = 'SilentlyContinue'
3
+
4
+ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path
5
+ if (-not $dir) { $dir = $PSScriptRoot }
6
+ if (-not $dir) { $dir = (Get-Location).Path }
7
+
8
+ $candidates = @(
9
+ (Join-Path $dir 'super-nvm-1.0.0.vsix'),
10
+ (Join-Path (Split-Path -Parent $dir) 'super-nvm-1.0.0.vsix'),
11
+ (Join-Path (Get-Location) 'super-nvm-1.0.0.vsix')
12
+ )
13
+ $vsixPath = $null
14
+ foreach ($c in $candidates) {
15
+ if (Test-Path $c) { $vsixPath = $c; break }
16
+ }
17
+
18
+ Clear-Host
19
+ Write-Host "======================================================================" -ForegroundColor Cyan
20
+ Write-Host " Super NVM - Universal Multi-Editor Installer" -ForegroundColor Green
21
+ Write-Host "======================================================================" -ForegroundColor Cyan
22
+ Write-Host ""
23
+
24
+ if (-not $vsixPath) {
25
+ Write-Host "[ERROR] Could not find super-nvm-1.0.0.vsix." -ForegroundColor Red
26
+ Write-Host "Please ensure super-nvm-1.0.0.vsix is in the same folder as this script." -ForegroundColor Yellow
27
+ Write-Host ""
28
+ Read-Host 'Press Enter to exit'
29
+ exit 1
30
+ }
31
+
32
+ Write-Host "Target Package: $vsixPath" -ForegroundColor Gray
33
+ Write-Host "Scanning system for installed development editors..." -ForegroundColor Gray
34
+ Write-Host ""
35
+
36
+ $editors = @(
37
+ @{ Name = "Google Antigravity IDE"; Paths = @( (Join-Path $env:LOCALAPPDATA 'Programs\Antigravity IDE\bin\antigravity-ide.cmd'), (Join-Path $env:ProgramFiles 'Antigravity IDE\bin\antigravity-ide.cmd') ); CliName = "antigravity-ide" },
38
+ @{ Name = "Microsoft Visual Studio Code"; Paths = @( (Join-Path $env:LOCALAPPDATA 'Programs\Microsoft VS Code\bin\code.cmd'), (Join-Path $env:ProgramFiles 'Microsoft VS Code\bin\code.cmd') ); CliName = "code" },
39
+ @{ Name = "Cursor IDE"; Paths = @( (Join-Path $env:LOCALAPPDATA 'Programs\cursor\resources\app\bin\cursor.cmd'), (Join-Path $env:LOCALAPPDATA 'Programs\Cursor\resources\app\bin\cursor.cmd') ); CliName = "cursor" },
40
+ @{ Name = "Windsurf IDE"; Paths = @( (Join-Path $env:LOCALAPPDATA 'Programs\Windsurf\bin\windsurf.cmd') ); CliName = "windsurf" },
41
+ @{ Name = "VSCodium"; Paths = @( (Join-Path $env:LOCALAPPDATA 'Programs\VSCodium\bin\codium.cmd'), (Join-Path $env:ProgramFiles 'VSCodium\bin\codium.cmd') ); CliName = "codium" }
42
+ )
43
+
44
+ $count = 0
45
+ foreach ($e in $editors) {
46
+ $cli = $null
47
+ foreach ($p in $e.Paths) {
48
+ if (Test-Path $p) { $cli = $p; break }
49
+ }
50
+ if (-not $cli) {
51
+ $cmd = Get-Command $e.CliName -ErrorAction SilentlyContinue
52
+ if ($cmd) { $cli = $cmd.Source }
53
+ }
54
+ if ($cli) {
55
+ Write-Host "[FOUND] $($e.Name)" -ForegroundColor Yellow
56
+ Write-Host " Installing Super NVM extension..." -ForegroundColor Gray
57
+ $proc = Start-Process -FilePath $cli -ArgumentList "--install-extension `"$vsixPath`"" -Wait -NoNewWindow -PassThru
58
+ if ($proc.ExitCode -eq 0) {
59
+ Write-Host " [OK] Successfully installed into $($e.Name)!" -ForegroundColor Green
60
+ $count++
61
+ } else {
62
+ Write-Host " [WARN] Installation finished with exit code $($proc.ExitCode)" -ForegroundColor DarkYellow
63
+ }
64
+ Write-Host ""
65
+ }
66
+ }
67
+
68
+ Write-Host "======================================================================" -ForegroundColor Cyan
69
+ if ($count -gt 0) {
70
+ Write-Host "[SUCCESS] Super NVM has been installed into $count editor(s)!" -ForegroundColor Green
71
+ Write-Host "Launch or reload your editor to start managing Node versions with 1 click." -ForegroundColor White
72
+ } else {
73
+ Write-Host "[INFO] No extension-based editors were detected automatically." -ForegroundColor Yellow
74
+ Write-Host "You can manually install the .vsix via your editor Extensions menu." -ForegroundColor White
75
+ }
76
+ Write-Host ""
77
+ Write-Host "For WebStorm, IntelliJ IDEA, PyCharm, Sublime Text, or Neovim:" -ForegroundColor Cyan
78
+ Write-Host "Double-click launch-tray.bat or launch-ui.bat to switch Node versions globally!" -ForegroundColor Gray
79
+ Write-Host "======================================================================" -ForegroundColor Cyan
80
+ Write-Host ""
81
+ Read-Host 'Press Enter to exit'
package/bin/nvm-ui.js ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ const compiledCli = path.join(__dirname, '..', 'out', 'server', 'cli.js');
6
+
7
+ if (!fs.existsSync(compiledCli)) {
8
+ console.log('Compiling NVM-UI TypeScript sources...');
9
+ const { execSync } = require('child_process');
10
+ execSync('npm run compile', { stdio: 'inherit', cwd: path.join(__dirname, '..') });
11
+ }
12
+
13
+ require(compiledCli);
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ const compiledCli = path.join(__dirname, '..', 'out', 'server', 'cli.js');
6
+
7
+ if (!fs.existsSync(compiledCli)) {
8
+ console.log('Compiling Super NVM TypeScript sources...');
9
+ const { execSync } = require('child_process');
10
+ execSync('npm run compile', { stdio: 'inherit', cwd: path.join(__dirname, '..') });
11
+ }
12
+
13
+ require(compiledCli);
@@ -0,0 +1,22 @@
1
+ @echo off
2
+ title Super NVM - Universal Multi-Editor Installer
3
+ setlocal enabledelayedexpansion
4
+
5
+ if exist "%~dp0bin\install-editors.ps1" (
6
+ powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0bin\install-editors.ps1"
7
+ goto :done
8
+ )
9
+
10
+ if exist "%~dp0install-editors.ps1" (
11
+ powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-editors.ps1"
12
+ goto :done
13
+ )
14
+
15
+ :: Self-contained fallback when run alone in Downloads folder
16
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "$b='IyBTdXBlciBOVk0gLSBVbml2ZXJzYWwgTXVsdGktRWRpdG9yIEluc3RhbGxlcgokRXJyb3JBY3Rpb25QcmVmZXJlbmNlID0gJ1NpbGVudGx5Q29udGludWUnCgokZGlyID0gU3BsaXQtUGF0aCAtUGFyZW50ICRNeUludm9jYXRpb24uTXlDb21tYW5kLlBhdGgKaWYgKC1ub3QgJGRpcikgeyAkZGlyID0gJF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uYWdpbmcgTm9kZSB2ZXJzaW9ucyB3aXRoIDEgY2xpY2suIiAtRm9yZWdyb3VuZENvbG9yIFdoaXRlCn0gZWxzZSB7CiAgICBXcml0ZS1Ib3N0ICJbSU5GT10gTm8gZXh0ZW5zaW9uLWJhc2VkIGVkaXRvcnMgd2VyZSBkZXRlY3RlZCBhdXRvbWF0aWNhbGx5LiIgLUZvcmVncm91bmRDb2xvciBZZWxsb3cKICAgIFdyaXRlLUhvc3QgIllvdSBjYW4gbWFudWFsbHkgaW5zdGFsbCB0aGUgLnZzaXggdmlhIHlvdXIgZWRpdG9yIEV4dGVuc2lvbnMgbWVudS4iIC1Gb3JlZ3JvdW5kQ29sb3IgV2hpdGUKfQpXcml0ZS1Ib3N0ICIiCldyaXRlLUhvc3QgIkZvciBXZWJTdG9ybSwgSW50ZWxsaUogSURFQSwgUHlDaGFybSwgU3VibGltZSBUZXh0LCBvciBOZW92aW06IiAtRm9yZWdyb3VuZENvbG9yIEN5YW4KV3JpdGUtSG9zdCAiRG91YmxlLWNsaWNrIGxhdW5jaC10cmF5LmJhdCBvciBsYXVuY2gtdWkuYmF0IHRvIHN3aXRjaCBOb2RlIHZlcnNpb25zIGdsb2JhbGx5ISIgLUZvcmVncm91bmRDb2xvciBHcmF5CldyaXRlLUhvc3QgIj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0iIC1Gb3JlZ3JvdW5kQ29sb3IgQ3lhbgpXcml0ZS1Ib3N0ICIiClJlYWQtSG9zdCAnUHJlc3MgRW50ZXIgdG8gZXhpdCcK'; [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($b)) | Invoke-Expression"
17
+
18
+ :done
19
+ if %ERRORLEVEL% NEQ 0 (
20
+ echo.
21
+ pause
22
+ )
@@ -0,0 +1,15 @@
1
+ @echo off
2
+ title Install Super NVM VS Code Extension
3
+ echo ======================================================
4
+ echo Installing Super NVM Extension into VS Code...
5
+ echo ======================================================
6
+ code --install-extension "%~dp0super-nvm-1.0.0.vsix"
7
+ if %ERRORLEVEL% EQU 0 (
8
+ echo.
9
+ echo [SUCCESS] Super NVM extension installed! Open or restart VS Code to use it.
10
+ ) else (
11
+ echo.
12
+ echo [ERROR] Failed to install extension. Please ensure VS Code is installed and in your PATH.
13
+ )
14
+ echo.
15
+ pause
@@ -0,0 +1,8 @@
1
+ @echo off
2
+ title Super NVM Tray Launcher
3
+ echo Starting Super NVM Taskbar Tray Companion...
4
+ start /b powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "%~dp0tray\super-nvm-tray.ps1"
5
+ echo [OK] Super NVM is now running in your Windows taskbar tray (near the clock).
6
+ echo Right-click the Super NVM icon in the taskbar to switch Node versions instantly!
7
+ timeout /t 3 >nul
8
+ exit
package/launch-ui.bat ADDED
@@ -0,0 +1,11 @@
1
+ @echo off
2
+ title Super NVM Launcher
3
+ echo ======================================================
4
+ echo Starting Super NVM - Node Version Manager GUI
5
+ echo ======================================================
6
+ node "%~dp0bin\super-nvm.js"
7
+ if %ERRORLEVEL% NEQ 0 (
8
+ echo.
9
+ echo Failed to start Super NVM. Please check if Node.js is installed.
10
+ pause
11
+ )