Registry / testing / flumm-fetch

flumm-fetch

JSON →
library1.0.1jsnpmunverified

flumm-fetch is a lightweight HTTP client inspired by the Fetch API, providing an async-friendly interface for GET and POST requests. Version 1.0.1 is the current stable release, with no release cadence indicated. It differentiates itself by maintaining a minimal footprint and offering a promise-based or async/await API. It is a simple wrapper around the standard fetch function with no additional features like interceptors or streaming.

npm install flumm-fetch
INSTALL
IMPORT
SIG · FLUMM-FETCH
F
flumm-fetch
testingjavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import fetch from 'flumm-fetch'
const fetch = require('flumm-fetch')
ESM-only package; CommonJS require is not supported.
fetch
import fetch from 'flumm-fetch'
import { fetch } from 'flumm-fetch'
The default export is the fetch function, not a named export.
fetch
import fetch from 'flumm-fetch'
import * as fetch from 'flumm-fetch'
Namespace import is unnecessary; use default import.

Shows a simple GET request using async/await and parsing JSON response.

import fetch from 'flumm-fetch'; async function example() { const query = await fetch('https://jsonplaceholder.typicode.com/todos/1'); const result = await query.json(); console.log(result); } example();
Debug
Known issues
gotchaPackage is unknown and not widely used; trust and stability are uncertain.
fix
Consider using well-established alternatives like ky, got, or node-fetch.
affects: >=1.0.0
gotchaThe package may not support all HTTP methods beyond GET and POST based on documentation.
fix
Review source or use alternative if PUT/DELETE/etc. are needed.
affects: >=1.0.0
gotchaNo error handling examples beyond basic .catch; behavior on non-2xx status is undefined.
fix
Always check response.ok or response.status to handle errors.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'flumm-fetch'
Package not installed or not found in node_modules.
fix
Run 'npm install flumm-fetch' and ensure it's in package.json dependencies.
ERR_REQUIRE_ESM
Attempting to require an ESM-only package with require().
fix
Use import syntax or set type: 'module' in package.json.
TypeError: fetch is not a function
Incorrect import usage, e.g., using named import instead of default.
fix
Use 'import fetch from "flumm-fetch"'
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
flumm-fetch — npm install flumm-fetch · libregistry