Skip to content

Installation

fetchquack is available on npm and can be installed using your preferred package manager.

Terminal window
npm install fetchquack
  • Modern browsers with native fetch support (Chrome 42+, Firefox 39+, Safari 10.1+, Edge 14+)
  • For older browsers, you may need a fetch polyfill
  • 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

If you’re using Angular, fetchquack includes an Angular wrapper with RxJS support under the subpackage fetchquack/ngx.

Terminal window
npm install fetchquack
import { 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.

After installation, verify everything is working by importing the client:

import { HttpClient } from 'fetchquack';
const client = new HttpClient();
console.log('fetchquack is ready! 🦆');

Now that you have fetchquack installed, check out the Quick Start guide to learn the basics.