Installation
An installation of Hyper Fetch can be run clean
or for a specific environment. However, we only currently support
React.
info
The main @hyper-fetch/core
package is required for other sub packages to work.
Install Core packages
For minimal installation, you need to install the core package and eslint plugin.
- npm
- yarn
- pnpm
npm install --save @hyper-fetch/core eslint-plugin-hyper-fetch
yarn add @hyper-fetch/core eslint-plugin-hyper-fetch
pnpm add --save-prod @hyper-fetch/core eslint-plugin-hyper-fetch
warning
Eslint plugin is required for maximum type safety. It enhances the abilities of the typescript via checking the object generic types to match exact schema.
Sockets
Sockets is created for handling websockets or server sent events.
- npm
- yarn
- pnpm
npm install --save @hyper-fetch/sockets
yarn add @hyper-fetch/sockets
pnpm add --save-prod @hyper-fetch/sockets
React
React allows the installation of the base library with hooks, offering interfaces that facilitate library usage and support the application lifecycle.
- npm
- yarn
- pnpm
bun add @hyper-fetch/core @hyper-fetch/react
bun add @hyper-fetch/core @hyper-fetch/react
bun add @hyper-fetch/core @hyper-fetch/react
Integrations
Integrations
Find out how to integrate Hyper Fetch with your favorite libraries