A lightweight HTTP client library for Node.js and browser environments, providing a simple API for making HTTP requests. Current stable version is 10.0.9, released on an as-needed basis. Key differentiators include minimal configuration, built-in retry and timeout support, and TypeScript definitions. Compared to alternatives like axios or node-fetch, ers-http offers a smaller footprint and tighter integration with the ers ecosystem.
npm install ers-httpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows default import, GET request with auth header, timeout/retry options, and proper error handling with HttpError.
Use destructuring: const { data, status, headers } = await http.get(...)Convert to ESM: use `import` statements or set `"type": "module"` in package.json.
Replace `http.request('GET', url)` with `http.get(url)`.Use `import { del } from 'ers-http'` and call `del(url)`.Switch to ESM: use import statements or set 'type': 'module' in package.json.
Update to new response format: const { data, status, headers } = await http.get(...)Use import { del } from 'ers-http' and call del(url).No dependency data recorded yet.