# @cuvva/json-client

> Simple library for requesting data from JSON APIs

Latest version **1.0.3** (published 2021-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cuvva/json-client
pnpm add @cuvva/json-client
yarn add @cuvva/json-client
bun add @cuvva/json-client
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-09-17 |
| First published | 2021-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | original James Billingham |
| Maintainers | cuvva-old, 0xdeafcafe, duffleman, cuvva-ci |
| Keywords | json, client, rest, restful, api, http, https, request, simple, library, promise, fetch |

## Links

- npm: https://www.npmjs.com/package/@cuvva/json-client
- Repository: https://github.com/cuvva/json-client
- Issues: https://github.com/cuvva/json-client/issues
- npm.io page: https://npm.io/package/@cuvva/json-client

## Dependencies (3)

- [qs](https://npm.io/package/qs.md) ^6.5.2
- [cls-rtracer](https://npm.io/package/cls-rtracer.md) ^2.6.0
- [fetch-ponyfill](https://npm.io/package/fetch-ponyfill.md) ^7.1.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-09-17
- 1.0.2 — 2021-09-06
- 1.0.1 — 2021-07-05
- 1.0.0 — 2021-06-25

## README

# json client

Simple library for requesting data from JSON APIs.

Returns promises only. Standard callbacks are not supported.

```js
const jsonClient = require('@cuvva/json-client');
const client = jsonClient('https://api.example.com/v1');

await client('get', 'users/123');
```

## Installation

```bash
$ npm install @cuvva/json-client
```

### Notes

json client uses [`fetch`](https://fetch.spec.whatwg.org) to make requests
internally. It does this via the
[`fetch-everywhere`](https://github.com/lucasfeliciano/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](LICENSE) file

---
_Source: https://npm.io/package/@cuvva/json-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
