api-spec-cli 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. package/README.md +11 -5
  2. package/bin/spec.js +1 -1
  3. package/package.json +5 -2
package/README.md CHANGED
@@ -5,14 +5,20 @@ Agent-friendly CLI for exploring and calling OpenAPI and GraphQL APIs. Designed
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- bun install
9
- bun link
8
+ npm install -g api-spec-cli
10
9
  ```
11
10
 
12
- Or run directly:
11
+ Or with bun:
13
12
 
14
13
  ```bash
15
- bun bin/spec.js <command>
14
+ bun install -g api-spec-cli
15
+ ```
16
+
17
+ Or run without installing:
18
+
19
+ ```bash
20
+ npx api-spec-cli <command>
21
+ bunx api-spec-cli <command>
16
22
  ```
17
23
 
18
24
  ## Quick Start
@@ -188,4 +194,4 @@ Add `.spec-cli/` to your `.gitignore`.
188
194
 
189
195
  - [yaml](https://www.npmjs.com/package/yaml) — YAML parsing (for OpenAPI YAML specs and YAML output)
190
196
 
191
- No other runtime dependencies. Uses Bun's built-in `fetch` for HTTP.
197
+ No other runtime dependencies. Works with Node.js 18+ or Bun (uses native `fetch`).
package/bin/spec.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
 
3
3
  import { run } from "../src/cli.js";
4
4
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "api-spec-cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Agent-friendly CLI for exploring and calling OpenAPI and GraphQL APIs",
5
5
  "type": "module",
6
6
  "bin": {
7
- "spec": "./bin/spec.js"
7
+ "spec": "bin/spec.js"
8
8
  },
9
9
  "scripts": {
10
10
  "test": "bun test"
@@ -31,6 +31,9 @@
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/niradler/api-spec-cli.git"
33
33
  },
34
+ "engines": {
35
+ "node": ">=18.0.0"
36
+ },
34
37
  "dependencies": {
35
38
  "yaml": "^2.7.0"
36
39
  }