# request-multiple-demo

> Request Multiple Library

Latest version **1.0.3** (published 2021-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install request-multiple-demo
pnpm add request-multiple-demo
yarn add request-multiple-demo
bun add request-multiple-demo
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-01-11 |
| First published | 2020-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | Sidney Barrah |
| Maintainers | s-barrah |

## Links

- npm: https://www.npmjs.com/package/request-multiple-demo
- npm.io page: https://npm.io/package/request-multiple-demo

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.21.0

## Recent versions

- 1.0.3 (latest) — 2021-01-11
- 1.0.2 — 2020-12-21
- 1.0.1 — 2020-12-21
- 0.0.0-development — 2020-12-21

## README

[![CircleCI](https://circleci.com/gh/s-barrah/request-multiple-demo.svg?style=svg)](https://app.circleci.com/pipelines/github/s-barrah/encrypt-decrypt-library)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![semantic-release](https://badge.fury.io/js/request-multiple-demo.svg)](https://www.npmjs.com/package/request-multiple-demo)


# request-multiple-demo

Simple library for fetching an array of URLs containing JSON data and returning their contents. It also has supports and optimizes requests by chunking larger arrays.


## Install
```bash
// Via NPM
$ npm install --save request-multiple-demo

// Via Yarn
$ yarn add request-multiple-demo
```

## Usage

```javascript
import requestMultipleUrls from "request-multiple-demo";
const urls = [
            'http://example-1.com/data.json',
            'http://example-2.com/data.json',
            'http://example-3.com/data.json',
            'http://example-4.com/data.json',
            'http://example-5.com/data.json',
            'http://example-6.com/data.json',
            'http://example-7.com/data.json',
            'http://example-8.com/data.json',
            'http://example-9.com/data.json',
            'http://example-10.com/data.json',
            'http://example-11.com/data.json',
            'http://example-12.com/data.json'
]


requestMultipleUrls(urls)
.then((data) => {
  console.log(data)
 // { status: 'success', message: [{symbolInput: 'FTSE:FSI', basic: {}, quote: {} }]}
})
.catch((error) => console.error(error))

```

## Documentation

### requestMultipleUrls(urls: string[])
Returns a response

#### urls
Type: `string[]` -
The array of urls.

#### Example
```javascript
import requestMultipleUrls from "request-multiple-demo";
const urls = [
            'http://example-1.com/data.json',
            'http://example-2.com/data.json',
            'http://example-3.com/data.json',
]

requestMultipleUrls(urls)
.then((data) => {
  console.log(data)
 // { status: 'success', message: [{symbolInput: 'FTSE:FSI', basic: {}, quote: {} }]}
})
.catch((error) => console.error(error))
```

## Local Development
On your terminal console,

- Clone this repo

- `cd request-multiple-demo`

- Install dependencies `yarn install`


## Testing
Tests are located in the tests folder an can be invoked by running `yarn test`.



# Semantic release
Release management is automated using [semantic-release](https://www.npmjs.com/package/semantic-release).



## License
[The MIT License](./LICENSE)

---
_Source: https://npm.io/package/request-multiple-demo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
