Skip to content

api-evangelist/axios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Axios

Axios is a promise-based HTTP client for the browser and Node.js with automatic JSON data transformation and request/response interceptors.

APIs

Axios

Promise-based HTTP client for browsers and Node.js.

Features

  • Promise-Based — Clean async/await and .then() chaining patterns.
  • Browser and Node.js Support — Works in both environments with automatic adapter selection.
  • Automatic JSON Transformation — Automatically serializes and parses JSON.
  • Request and Response Interceptors — Add custom logic before requests and responses are handled.
  • Request Cancellation — Cancel in-flight requests using AbortController.
  • XSRF Protection — Built-in client-side XSRF protection.
  • Timeout Support — Configure request timeouts for automatic cancellation.
  • Progress Tracking — Track upload and download progress with callbacks.

Use Cases

  • REST API Consumption — Consume RESTful APIs from frontend and Node.js applications.
  • File Uploads — Upload files with progress tracking.
  • Authentication — Add auth tokens and headers via request interceptors.
  • Data Fetching — Fetch data in React, Vue, Angular, and other frameworks.
  • API Testing — Test API integrations in Node.js scripts and test suites.

Links

Maintainers

About

Axios is a promise-based HTTP client for the browser and Node.js with automatic JSON data transformation and request/response interceptors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors