🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

juno-node-sdk

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

juno-node-sdk

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

latest
Source
npmnpm
Version
2.9.2
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

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:

# 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

/*
* 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
})

FAQs

Package last updated on 23 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts