Socket
Socket
Sign inDemoInstall

@orionlabs/node-orion

Package Overview
Dependencies
143
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @orionlabs/node-orion

Node.js Module for Orion.


Version published
Weekly downloads
12
Maintainers
2
Created
Weekly downloads
 

Readme

Source

@orionlabs/node-orion - Node.js Module for Orion.

Build Status Maintenance HitCount Dependencies Status License Issues JavaScript Style Guide NPM

--

Install

To install from npm registry:

$ yarn add @orionlabs/node-orion
# or
$ npm i @orionlabs/node-orion

To install from source:

$ git clone https://github.com/orion-labs/node-orion
$ cd node-orion
$ npm install
# or
$ yarn add ./

Usage

Almost all module methods return a Promise. Most require a token, which can be retrieved with the auth() method.

Authenticate against the Orion Platform

With a given Orion username ("User ID") and password:

OrionClient.auth(username, password).then((result) => {
  console.log(`userId=${result.id} token=${result.token}`);
})

Authenticate against the Orion Platform

With a given Orion username ("User ID") and password:

OrionClient.auth(username, password).then((result) => {
  console.log(`userId=${result.id} token=${result.token}`);
})

Lookup your user profile

With a given Orion username ("User ID") and password:

OrionClient.auth(username, password).then((result) => {
  OrionClient.whoami(result.token).then((result) => {
    console.log('Here is my Orion User Profile:');
    console.log(result);
  });
});

Copyrigh 2020 Orion Labs, Inc.

License

Apache License, Version 2.0

Author

Greg Albrecht gba@orionlabs.io

Source

https://github.com/orion-labs/node-orion

FAQs

Last updated on 01 Sep 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc