http helpers
npm install @toruslabs/http-helpers
!npm
- This package allows you to call http methods with pre defined configs. Uses fetch or node-fetch internally
- Adds support for api keys
- Works in both browser and node.js environments
lib.esm build dist/lib.esm/index.js in es6 formatlib.cjs build dist/lib.cjs/index.js in es5 formatBy default, the appropriate format is used for your specified usecase
You can use a different format (if you know what you're doing eg. node) by referencing the correct file
CDN's serve the non-core-js polyfilled version by default. You can use a different
jsdeliver
``js`
unpkg
`js`
Add @toruslabs/http-helpers to your project:
`ts`
import { get, post } from "@toruslabs/http-helpers";
`js`
const { get, post } = require("@toruslabs/http-helpers").default;
- This package requires a peer dependency of @babel/runtime`
- Node 22+