create-swagger-client 0.1.2 → 0.1.3

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 +9 -16
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -11,6 +11,13 @@ A TypeScript tool that generates a fully type-safe REST API client from OpenAPI/
11
11
  - 🌐 **URL or File Input**: Generate from remote URLs or local files
12
12
  - 🎯 **Type Inference**: Automatic extraction of path params, query params, headers, and request/response types
13
13
 
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm install -g create-swagger-client
18
+ # or
19
+ npx create-swagger-client
20
+ ```
14
21
 
15
22
  ## Usage
16
23
 
@@ -180,24 +187,10 @@ try {
180
187
  }
181
188
  ```
182
189
 
183
- ## Development
184
-
185
- ### Build
186
-
187
- ```bash
188
- bun run build
189
- ```
190
-
191
- ### Type Check
192
-
193
- ```bash
194
- bun run typecheck
195
- ```
196
-
197
190
  ## Requirements
198
191
 
199
- - TypeScript 5.x
200
- - Node.js 16+ or Bun
192
+ - Node.js 16+ (for running the CLI)
193
+ - TypeScript 5.x (peer dependency for generated types)
201
194
 
202
195
  ## License
203
196
 
package/index.mjs CHANGED
@@ -6,7 +6,7 @@ import * as tsMorph from "ts-morph";
6
6
 
7
7
  var args = process.argv.slice(2);
8
8
  var source = args[0];
9
- var outPut = args[1] || "client-api.ts";
9
+ var outPut = args[1] || "swagger-client.ts";
10
10
  if (!source) {
11
11
  console.error("Please provide a source URL or file path.");
12
12
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-swagger-client",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Generate fully type-safe REST API clients from OpenAPI/Swagger specifications",
5
5
  "main": "./index.mjs",
6
6
  "module": "./index.mjs",