1.0.0 • Published 4 years ago

ftproject v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

FTPackage

A package to fetch URLs that contain JSON data and return the contents in a promise.

What is this package for?

This package requests all JSON data from an array of URLs. The requests are handled asynchronously and any erros are caught during the process.

Features

Installation

// Curently still in development but the package will be installed via npm once it is published.

Loading and configuring the module

We suggest you load the module via require:

const requestMultipleUrls = require('ft-package');

Common Use Case Example

const requestMultipleUrls = require('ft-package');

const urls = [
'https://ft-tech-test-example.s3-eu-west-1.amazonaws.com/ftse-fsi.json',
'https://ft-tech-test-example.s3-eu-west-1.amazonaws.com/gbp-hkd.json',
'https://ft-tech-test-example.s3-eu-west-1.amazonaws.com/gbp-usd.json'
];

requestMultipleUrls(urls).then(urlContent => {
    console.log(urlContent)
    });
1.0.0

4 years ago