A lightweight (4kB) wrapper around the GitHub fetch polyfill that automatically includes Rails CSRF tokens in requests. Current version 0.8.3 (last release 2019, low activity). Simplifies JSON, HTML, and text requests for Rails apps by handling CSRF token extraction, parameter encoding, and HTTP status checks. Compared to plain fetch or axios, it provides Rails-specific defaults like JSON headers and credential inclusion.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM default export; CJS require gives the default object, not a named export.
Methods are on the default export, not separate named exports.
The method expects data as second argument, not a body option.
Shows basic GET and POST JSON requests including CSRF token handling for Rails backends.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.