1.1.0 • Published 2 years ago
@draverbot/safe-fetch v1.1.0
@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);
1.1.0
2 years ago