0.0.1 • Published 4 years ago

fetchw v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

custom-sorts

This library is fetch utils.

Installation

npm install fetchw

or

yarn add fetchw

Usage

This is all you need to get started:

const fetchw = require('fetchw');
fetchw.get({ endpoint: '/users' });

fetchw.patch({
  endpoint: '/users',
  payload: {
    uuid,
    username,
  },
});

fetchw.post({
  endpoint: '/users',
  payload: {
    email,
    username,
    password,
  },
});

or es6

import { get } from 'fetchw';
get({ endpoint: '/users' });

patch({
  endpoint: '/users',
  payload: {
    uuid,
    username,
  },
});

post({
  endpoint: '/users',
  payload: {
    email,
    username,
    password,
  },
});

License

MIT