Installation
fetchquack is available on npm and can be installed using your preferred package manager.
Package Managers
Section titled “Package Managers”npm install fetchquackyarn add fetchquackpnpm add fetchquackbun add fetchquackRequirements
Section titled “Requirements”Browser
Section titled “Browser”- Modern browsers with native
fetchsupport (Chrome 42+, Firefox 39+, Safari 10.1+, Edge 14+) - For older browsers, you may need a fetch polyfill
Node.js
Section titled “Node.js”- Node.js 18.0.0 or higher (native fetch support)
- For older versions, consider using a fetch polyfill like
node-fetch
- Bun 1.0.0 or higher
- Deno 1.0.0 or higher
Angular Integration
Section titled “Angular Integration”If you’re using Angular, fetchquack includes an Angular wrapper with RxJS support under the subpackage fetchquack/ngx.
npm install fetchquackimport { NgxHttpClient } from 'fetchquack/ngx';The Angular integration requires:
- Angular 17.0.0 or higher
- RxJS 7.0.0 or higher
These are peer dependencies and should already be in your Angular project.
Verify Installation
Section titled “Verify Installation”After installation, verify everything is working by importing the client:
import { HttpClient } from 'fetchquack';
const client = new HttpClient();console.log('fetchquack is ready! 🦆');Next Steps
Section titled “Next Steps”Now that you have fetchquack installed, check out the Quick Start guide to learn the basics.