fetchclient 1.0.1-alpha.0.6
Install from the command line:
Learn more about npm packages
$ npm install @foundatiofx/fetchclient@1.0.1-alpha.0.6
Install via package.json:
"@foundatiofx/fetchclient": "1.0.1-alpha.0.6"
About this version
FetchClient is a tiny, typed wrapper around fetch
with JSON helpers, caching,
middleware, rate limiting, timeouts, and friendly error handling.
npm install @foundatiofx/fetchclient
import { FetchClient } from "@foundatiofx/fetchclient";
type Products = { products: Array<{ id: number; name: string }> };
const client = new FetchClient();
const { data } = await client.getJSON<Products>(
`https://dummyjson.com/products/search?q=iphone&limit=10`,
);
console.log(data?.products.length);
- Guide & Examples: https://fetchclient.foundatio.dev
- Getting Started, Usage Examples, Contributing
- API Reference: https://jsr.io/@foundatiofx/fetchclient/doc
MIT © Foundatio
Details
- fetchclient
-
FoundatioFx
- 15 days ago
- Apache-2.0
- 4 dependencies
Assets
- fetchclient-1.0.1-alpha.0.6.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0