axios-es6-class is a TypeScript module that wraps axios (v0.21.1) into an ES6 class, enabling a class-based API for HTTP requests with interceptors. v6.0.1 ships TypeScript types, requiring axios as a peer dependency. It differentiates from raw axios by providing a class structure that developers can extend, centralizing config, interceptors, and auth logic. Low download count; primarily for learning or small projects.
npm install axios-es6-classNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to extend the Api class, create a UserApi with login method, and make a POST request.
Consider using raw axios or a well-maintained wrapper like axios-class (not this one).
Update peer dependency or use axios 0.21.1 explicitly.
Test interceptor logic thoroughly; consider using axios interceptors directly.
Declare your own types for axios config/responses if needed.
Run: npm install axios-es6-class
Use: import Api from 'axios-es6-class' or import { Api } from 'axios-es6-class' (both work if named export exists).