cn007b / getthemall

πŸš€ Despite fact that this project built for demo purposes, you can use this small library to perform few REST API requests in one run.

Home Page:https://www.npmjs.com/package/getthemall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetThemAll

NPM

Build Status Coverage Status Codacy Badge

A small library built for demo purposes,
which helps fetch data from different REST API endpoints in one call.

Installation

npm i getthemall

Usage

const getThemAll = require('getthemall');

getThemAll('https://your-api-host.com/', { user1: 'users/1', user2: 'users/2' }, (data) => {
  // Now you have all your data for different resources from different endpoints.
  console.log(data.user1, data.user2);
});

Tests

npm test

About

πŸš€ Despite fact that this project built for demo purposes, you can use this small library to perform few REST API requests in one run.

https://www.npmjs.com/package/getthemall


Languages

Language:JavaScript 100.0%