@kubb/plugin-fetch
v6.8.2
Published
Generate a slim, type-safe HTTP client with Kubb based on the native Fetch api.
Maintainers
Readme
@kubb/plugin-fetch
Generate fetch clients with Kubb
@kubb/plugin-fetch generates a type-safe HTTP client from your OpenAPI spec, with one async function per operation and the runtime bundled into .kubb/client.ts.
Installation
npx kubb add plugin-fetch
# or
bun add @kubb/plugin-fetch
# or
pnpm add @kubb/plugin-fetch
# or
npm install @kubb/plugin-fetchkubb add installs the version the Kubb registry pins and adds pluginFetch() to your kubb.config.ts. Run npx kubb init first if you have no config.
Documentation
See the full documentation for configuration options and examples.
Supporting Kubb
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
