This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@aiwizo/api-utils

0.1.1 • Public • Published

@aiwizo/api-utils

Minimalistic fetch wrapper for front end applications.

Installation

npm install @aiwizo/api-utils

Setup

Requires environment variables:

  • NODE_ENV, string "development" or "production"
  • REACT_APP_BACKEND_PORT, number eg 8000

Basic usage

import { GET, POST } from '@aiwizo/api-utils';

GET((error, data) => {
 // Do something
}, '/some/endpoint');

POST((error, data) => {
// Do something
}, '/some/endpoint', {foo: 'bar'});

Readme

Keywords

none

Package Sidebar

Install

npm i @aiwizo/api-utils

Weekly Downloads

0

Version

0.1.1

License

UNLICENSED

Unpacked Size

6.22 kB

Total Files

15

Last publish

Collaborators

  • oscarleo
  • jacob-aiwizo
  • fippli