@fippli/api-utils

API utils for javascript projects.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
01Aug 25, 2019Aug 23, 2018Minified + gzip package size for @fippli/api-utils in KB

Readme

@fippli/api-utils

API tools for JavaScript projects

Installation

npm install @fippli/api-utils

Basic usage

Make GET request to http://www.example.com:3000/some/endpoint

import { GET } from '@fippli/api-utils';

const callback = (data) => {
  console.log("This is my api data", data);
};

const enpoint = '/some/endpoint';

const options = {
  port: 3000,
  host: 'www.example.com',
}

GET(callback, endpoint, options);

NOTE

This is a work in progress and might be unstable.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.