@billogram/wretch

Functions that wrap fetch

Usage no npm install needed!

<script type="module">
  import billogramWretch from 'https://cdn.skypack.dev/@billogram/wretch';
</script>

README

@billogram/wretch

Functions that wrap fetch

Install

yarn add @billogram/wretch

Usage

import {
    deleteJson,
    getJson,
    graphql,
    postJson,
    putJson,
    WretchError,
    wretchJson,
} from '@billogram/wretch';

deleteJson

getJson

graphql

postJson

putJson

WretchError

wretchJson

Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

License

MIT