simple-fetch-wrapper v1.3.8 is a lightweight HTTP client wrapping the native fetch API. It provides a simple interface for GET and POST requests, base URL configuration, default content type, request interceptors, a fetching status callback, and a custom event system. Updated infrequently, it offers minimal abstraction compared to axios or ky, with TypeScript declarations included. Good for small projects wanting fetch convenience without heavy dependencies.
npm install simple-fetch-wrapperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows base URL setup, content type, fetching status callback, and async GET/POST requests.
Include `params` object in args: http.get('/endpoint', { params: { key: 'value' } })Always return the requestConfig object from interceptor function.
Use the callback for UI state updates that can be set repeatedly.
Use for transient app events only; not a replacement for persistent state management.
Use `import http from 'simple-fetch-wrapper'` or `const http = require('simple-fetch-wrapper').default`Add `await` before the call: `const res = await http.get(...)`
Call http.setBaseUrl('https://base.url') before making requests.No dependency data recorded yet.