json-client v0.9.3
json client
Simple library for requesting data from JSON APIs.
Returns promises only. Standard callbacks are not supported.
const jsonClient = require('json-client');
const client = jsonClient('https://api.example.com/v1');
await client('get', 'users/123');Installation
$ npm install json-clientNotes
json client uses fetch to make requests
internally. It does this via the
fetch-everywhere
package.
In theory, fetch-everywhere should support all environments. If yours isn't
yet covered, please open an issue on the repo.
Support
Please open an issue on this repository.
Authors
- James Billingham james@jamesbillingham.com
License
MIT licensed - see LICENSE file
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago