3.2.0 • Published 6 years ago

@nelreina/web-api v3.2.0

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

@nelreina/web-api

version 2.0.0 A simplified abstraction of the javascript fetch api

Usage

Simple Methods

import { get, post } from '@nelreina/web-api';

const data = await get('/some-path or http(s)://public/api');

or

Class

import Api from '@nelreina/web-api';

const api = new Api('http(s)://some-host')
const data = await api.get('/some-path');

TODO

  • Add option to add custom headers in class