1.2.2 • Published 6 years ago

@lodgify/fetch-helpers v1.2.2

Weekly downloads
58
License
MIT
Repository
github
Last release
6 years ago

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.