N4JS runtime library providing a lightweight polyfill for the whatwg fetch API, designed specifically for N4JS transpiled code. Version 0.29.1 is the latest stable release with no active development or public roadmap. It acts as a bridge for using the fetch API in N4JS projects when targeting Node.js or browsers lacking native fetch. Differentiators: minimal overhead, tight integration with N4JS module system.
npm install n4js-runtime-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the fetch polyfill for GET requests with async/await and error handling.
Use 'whatwg-fetch' or 'node-fetch' directly for non-N4JS projects.
Update imports to use the package's named exports instead of relying on global fetch.
Consider migrating to native fetch (Node.js 18+) or using 'node-fetch' for older versions.
Use a full-featured fetch polyfill like 'node-fetch' if advanced features are required.
Use `import { fetch } from 'n4js-runtime-fetch'` instead of requiring blindly.Run `npm install whatwg-fetch` as a peer dependency.