You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@every-env/spiral-cli

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@every-env/spiral-cli - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+26
bin/spiral.mjs
#!/usr/bin/env node
import { execFileSync } from "node:child_process";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";
const __dirname = dirname(fileURLToPath(import.meta.url));
const cli = join(__dirname, "..", "src", "cli.ts");
// Try bun first (handles .ts natively), fall back to error message
try {
execFileSync("bun", ["run", cli, ...process.argv.slice(2)], {
stdio: "inherit",
env: process.env,
});
} catch (err) {
if (err.status !== undefined) {
// Command ran but exited non-zero — propagate exit code
process.exit(err.status);
}
// bun not found
console.error(
"Spiral CLI requires Bun to run. Install it with: curl -fsSL https://bun.sh/install | bash",
);
process.exit(1);
}
+3
-2
{
"name": "@every-env/spiral-cli",
"version": "1.0.0",
"version": "1.0.1",
"description": "CLI for Spiral API - create content from your terminal",

@@ -9,5 +9,6 @@ "author": "Kieran Klaassen",

"bin": {
"spiral": "./src/cli.ts"
"spiral": "./bin/spiral.mjs"
},
"files": [
"bin",
"src",

@@ -14,0 +15,0 @@ "README.md"

+1
-1

@@ -18,3 +18,3 @@ #!/usr/bin/env bun

const VERSION = "1.0.0";
const VERSION = "1.0.1";

@@ -21,0 +21,0 @@ const HELP = `