Fetch helpers
Simple helpers for fetch.
Install
$ npm install @lodgify/fetch-helpers
Usage
import { postJSON } from '@lodgify/fetch-helpers';
const url = "www.lassie.com";
const body = {
toy: "stick",
};
const customHeaders = {
redirect: "follow",
};
postJSON(url, body, customHeaders);
Contributing
See contributing.