Axios interceptor that wraps responses in JSend format. Version 1.0.3 (latest) — last updated 2019, no recent releases. It attaches an Axios response interceptor to automatically extract the JSend body. Lightweight alternative to manual response handling when using jsend middleware on the server.
npm install jsend-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs jsend-axios interceptor on an axios instance, showing how to use it after setup.
Use import syntax or const { default: JSendInterceptor } = require('jsend-axios');Ensure server sends valid JSend responses (status, data, etc.)
Consider alternatives like custom response transformers or manual handling.
Use import or const JSendInterceptor = require('jsend-axios').defaultRun npm install jsend-axios
Ensure you create an axios instance with axios.create()