@digitransit-search-util/digitransit-search-util-get-json

0.0.5 • Public • Published

@digitransit-search-util/digitransit-search-util-get-json

getJson

Return Promise for a url json get request

Parameters

Examples

digitransit-search-util.getJson(param1, param2);
//=response

Returns Object response


This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @digitransit-search-util/digitransit-search-util-get-json

Or install the Digitransit-util module that includes it as a function:

$ npm install @digitransit-util/digitransit-util

Package Sidebar

Install

npm i @digitransit-search-util/digitransit-search-util-get-json

Weekly Downloads

10

Version

0.0.5

License

(AGPL-3.0 OR EUPL-1.2)

Unpacked Size

51.6 kB

Total Files

6

Last publish

Collaborators

  • digitransit