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