api-spec-cli 0.0.2 → 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.
- package/README.md +11 -5
- package/bin/spec.js +1 -1
- 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
|
-
|
|
9
|
-
bun link
|
|
8
|
+
npm install -g api-spec-cli
|
|
10
9
|
```
|
|
11
10
|
|
|
12
|
-
Or
|
|
11
|
+
Or with bun:
|
|
13
12
|
|
|
14
13
|
```bash
|
|
15
|
-
bun
|
|
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.
|
|
197
|
+
No other runtime dependencies. Works with Node.js 18+ or Bun (uses native `fetch`).
|
package/bin/spec.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api-spec-cli",
|
|
3
|
-
"version": "0.0.
|
|
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": "
|
|
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
|
}
|