Socket
Socket
Sign inDemoInstall

@social-hustle/utils-fetch

Package Overview
Dependencies
0
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @social-hustle/utils-fetch

A drop-in replacement (with some extras) for Axios that uses the Fetch API.


Version published
Weekly downloads
12
increased by140%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

To-Do:

  • Bearer auth
  • @type RequestInfo
  • @type RequestInit
  • Validate/serialize body based on content type
  • JSON (application/json)
  • Multipart / FormData (multipart/form-data)
  • URL encoded form (application/x-www-form-urlencoded)
  • Validate content type based on environment
  • Server: Stream / Buffer
  • Browser: FormData, File, Blob
  • Isomorphic: string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
  • Adapt every param from axios: https://axios-http.com/docs/req_config

FAQs

Last updated on 02 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc