Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
gaboe/rest2tsGenerate beautiful TypeScript types from REST APIs
This package works with Node.jsIt is unknown whether this package works with Cloudflare Workers, Deno, Bun, Browsers




JSR Score
100%
Published
2 months ago (6.3.4)
REST2TS
Generate modern TypeScript types from REST APIs
🚀 Usage
npx rest2ts -s https://petstore.swagger.io/v2/swagger.json -t ./api
📖 Docs
👉 https://gaboe.github.io/rest2ts/ 👈
🤝 Support
📦 Contribution
-
Clone the repository
-
At root level run
pnpm i
-
Change the at /apps/cli
-
Write test for your change or test them with
pnpm test
if you want to change snapshot run
pnpm test:snapshot:update
Built and signed on
GitHub Actions
Add Package
deno add jsr:@gaboe/rest2ts
Import symbol
import * as rest_ts from "@gaboe/rest2ts";
Import directly with a jsr specifier
import * as rest_ts from "jsr:@gaboe/rest2ts";
Add Package
pnpm i jsr:@gaboe/rest2ts
pnpm dlx jsr add @gaboe/rest2ts
Import symbol
import * as rest_ts from "@gaboe/rest2ts";
Add Package
yarn add jsr:@gaboe/rest2ts
yarn dlx jsr add @gaboe/rest2ts
Import symbol
import * as rest_ts from "@gaboe/rest2ts";
Add Package
vlt install jsr:@gaboe/rest2ts
Import symbol
import * as rest_ts from "@gaboe/rest2ts";
Add Package
npx jsr add @gaboe/rest2ts
Import symbol
import * as rest_ts from "@gaboe/rest2ts";
Add Package
bunx jsr add @gaboe/rest2ts
Import symbol
import * as rest_ts from "@gaboe/rest2ts";