swaggie
Version:
Generate TypeScript REST client code from an OpenAPI spec
70 lines (69 loc) • 1.68 kB
JSON
{
"name": "swaggie",
"version": "1.4.2",
"description": "Generate TypeScript REST client code from an OpenAPI spec",
"author": {
"name": "Piotr Dabrowski",
"url": "https://github.com/yhnavein"
},
"license": "MIT",
"homepage": "https://github.com/yhnavein/swaggie",
"repository": {
"type": "git",
"url": "https://github.com/yhnavein/swaggie.git"
},
"bugs": {
"url": "https://github.com/yhnavein/swaggie/issues"
},
"engines": {
"node": ">=18.17"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"swaggie": "dist/cli.js"
},
"scripts": {
"build": "sucrase ./src -d ./dist --transforms typescript,imports && yarn rm-tests && yarn types",
"rm-tests": "find dist/ \\( -name '*.spec.js' -o -name 'types.js' \\) -type f -delete",
"types": "tsc src/types.ts --outDir dist/ --declaration --emitDeclarationOnly && cp test/index.d.ts ./dist/",
"test": "tsx --test 'src/**/*.spec.ts' 'test/**/*.spec.ts'",
"coverage": "npx c8 yarn test"
},
"files": [
"dist",
"templates"
],
"keywords": [
"swagger",
"openapi",
"openapi 3.0",
"rest",
"rest client",
"fetch",
"axios",
"angular",
"xior",
"swr",
"service",
"typescript",
"codegen",
"TanStack Query"
],
"dependencies": {
"case": "^1.6.3",
"commander": "^13.1.0",
"eta": "^3.5.0",
"js-yaml": "^4.1.0",
"nanocolors": "^0.2.0",
"undici": "^6.21.1"
},
"devDependencies": {
"@types/js-yaml": "4.0.9",
"@types/node": "24.3.0",
"openapi-types": "^12.1.3",
"sucrase": "3.35.0",
"tsx": "^4.20.5",
"typescript": "5.9.2"
}
}