Skip to content

About

http helpers

Resources

Code of conduct

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

Http helpers

npm version npm

Introduction

  • 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

Installation

Bundling

This module is distributed in two formats:

  • lib.esm at dist/lib.esm/index.js
  • lib.cjs at dist/lib.cjs/index.js

Both builds import loglevel. They are not standalone browser scripts, so a <script> tag on the jsDelivr or unpkg URL will not run the package. Use a bundler, or Node import / require.

Usage

Add @toruslabs/http-helpers to your project:

import { get, post } from "@toruslabs/http-helpers";
const { get, post } = require("@toruslabs/http-helpers");

Requirements

  • Node 24.22 or newer

About

http helpers

Resources

Code of conduct

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages