# juno-node-sdk

> ## Initialization The initialization can be performed either by ENVIRONMENT variables or by JunoSDK constructor.

Latest version **2.9.2** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install juno-node-sdk
pnpm add juno-node-sdk
yarn add juno-node-sdk
bun add juno-node-sdk
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.9.2 |
| Published | 2022-03-23 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 115.7 KB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | wmenegali |

## Links

- npm: https://www.npmjs.com/package/juno-node-sdk
- Repository: https://github.com/anthorteam/juno-node-sdk
- Homepage: https://github.com/anthorteam/juno-node-sdk#readme
- Issues: https://github.com/anthorteam/juno-node-sdk/issues
- npm.io page: https://npm.io/package/juno-node-sdk

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.24.0
- [form-data](https://npm.io/package/form-data.md) ^3.0.0
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1

## Recent versions

- 2.9.2 (latest) — 2022-03-23
- 2.9.1 — 2022-01-14
- 2.9.0 — 2022-01-14
- 2.8.0 — 2022-01-04
- 2.7.0 — 2021-07-19
- 2.6.1 — 2021-07-16
- 2.6.0 — 2021-02-19
- 2.5.2 — 2021-02-02
- 2.5.1 — 2021-01-15
- 2.5.0 — 2020-04-14
- 2.4.0 — 2020-04-09
- 2.3.0 — 2020-04-08
- 2.2.3 — 2020-04-07
- 2.1.3 — 2019-11-27
- 2.1.2 — 2019-11-27
- … 38 more at https://npm.io/package/juno-node-sdk/versions

## README

# Juno Node SDK

## Initialization
The initialization can be performed either by ENVIRONMENT variables or by JunoSDK constructor.


### Environment variables
You must set following environment variables:

```bash
# V2 API only
export JUNO_CLIENT_ID=YOUR_CLIENT_ID
export JUNO_SECRET=YOUR_SECRET

# V1 and V2
export JUNO_TOKEN=YOUR_TOKEN
export JUNO_ENV=sandbox|production
```

### JunoSDK constructor

```typescript
/*
* For V1
*/
export { JunoSDK, JunoEnvironments } from 'juno-node-sdk';

const juno = new JunoSDK({
  token: 'YOUR_TOKEN',
  environment: JunoEnvironments.Sandbox
});

/*
* For V2
*/
export { V2 } from 'juno-node-sdk';

const { JunoSDK, JunoEnvironments } = V2;

const juno = new JunoSDK({
  token: 'YOUR_TOKEN',
  clientId: 'YOUR_CLIENT_ID',
  secret: 'YOUR_SECRET'
  environment: JunoEnvironments.Sandbox
})
```

---
_Source: https://npm.io/package/juno-node-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
