🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@getnote/cli

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getnote/cli - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "@getnote/cli",
"version": "1.0.0",
"version": "1.0.1",
"description": "CLI tool for Get笔记 — manage notes and knowledge bases from the terminal",

@@ -5,0 +5,0 @@ "keywords": [

@@ -46,2 +46,13 @@ #!/usr/bin/env node

// Skip download if binary already matches current version
if (fs.existsSync(binaryPath)) {
try {
const out = execSync(`"${binaryPath}" version 2>/dev/null || "${binaryPath}" --version 2>/dev/null`, { encoding: 'utf8' }).trim();
if (out.includes(VERSION)) {
console.log(`getnote v${VERSION} already installed, skipping download.`);
return;
}
} catch (_) { /* binary exists but can't run (wrong arch etc.), re-download */ }
}
console.log(`Downloading getnote v${VERSION} for ${platform.platform}/${platform.arch}...`);

@@ -48,0 +59,0 @@ console.log(`URL: ${url}`);