@draverbot/safe-fetch
v1.1.0
Published
A fetch wrapper on top of Rust's Result
Downloads
2
Maintainers
Readme
@skyra/safe-fetch
A fetch wrapper on top of Rust's Result, powered by @sapphire/result
.
Features
- Powered by the native
fetch
function - CJS and ESM support
Usage
import { safeFetch, json } from '@skyra/safe-fetch';
const data = await json(safeFetch('https://api.example.org'));
console.log(data);