# @savitar.exchange/savitar-api-client

> Savitar Exchange API client for browser and Node

Latest version **0.0.1-b** (published 2018-10-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install @savitar.exchange/savitar-api-client
pnpm add @savitar.exchange/savitar-api-client
yarn add @savitar.exchange/savitar-api-client
bun add @savitar.exchange/savitar-api-client
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-b |
| Published | 2018-10-26 |
| First published | 2018-10-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 525.3 KB |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jean-Loup Jamet |
| Maintainers | jloup, savitar_io |

## Links

- npm: https://www.npmjs.com/package/@savitar.exchange/savitar-api-client
- Repository: https://github.com/savitar-exchange/javascript-api-sdk
- Homepage: https://github.com/savitar-exchange/javascript-api-sdk#readme
- Issues: https://github.com/savitar-exchange/javascript-api-sdk/issues
- npm.io page: https://npm.io/package/@savitar.exchange/savitar-api-client

## Dependencies (5)

- [inherits](https://npm.io/package/inherits.md) ^2.0.3
- [jsrsasign](https://npm.io/package/jsrsasign.md) ^8.0.12
- [secure-random](https://npm.io/package/secure-random.md) ^1.1.1
- [querystring-es3](https://npm.io/package/querystring-es3.md) ^0.2.1
- [isomorphic-unfetch](https://npm.io/package/isomorphic-unfetch.md) ^3.0.0

## Recent versions

- 0.0.1-b (latest) — 2018-10-26
- 0.0.1-a — 2018-10-26

## README

# Savitar API Client for JavaScript

The official Node.js/Browser library for Savitar's API.

## Table of Contents

1. **[Install](#install)**

    * [Node.js / Browserify / webpack](#nodejs--browserify--webpack)
    * [&lt;script&gt; tag using CDNs](#script-tag-using-cdns)

1. **[Quick Start](#quick-start)**

    * [Initialize the client](#initialize-the-client)


# Getting Started

## Install

#### Node.js / Browserify / webpack

We are [browserify](http://browserify.org/)able and [webpack](http://webpack.github.io/) friendly.

```sh
npm install @savitar.exchange/savitar-api-client --save
# OR
yarn add @savitar.exchange/savitar-api-client
```
#### &lt;script&gt; tag using CDNs

##### Recommended: jsDelivr.com

[jsDelivr](http://www.jsdelivr.com/about.php) is a global CDN delivery for JavaScript libraries.

```html
<script src="https://cdn.jsdelivr.net/npm/@savitar.exchange/savitar-api-client/dist/savitar.min.js"></script>
```

## Quick Start

### Initialize the client

You first need to initialize the client. For that you need your **Application ID** and **Application Secret**.

```js
var savitar = require('@savitar.exchange/savitar-api-client');
// OR
import * as savitar from '@savitar.exchange/savitar-api-client';


var publicClient = new savitar.PublicClient();
var authenticatedClient = new savitar.AuthenticatedClient('applicationID', 'apiSecret');
```

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