Socket
Socket
Sign inDemoInstall

@wishcore/reason-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wishcore/reason-cli

Reason API CLI tool


Version published
Maintainers
1
Created
Source

Reason CLI

A Command Line interface to Reason. It can also be used to programmatically access Reason.

Usage as Cli

All backend Socket API commands are available in the CLI.

Tab completion is available.

The result of each command is stored in the result variable.

Install

npm install -g https://reason.wishtech.org/reason.tgz

Run on Linux or OSX

reason-cli

Run on Windows

reason-cli

Example usage

Example usage:

documents.list()

Programmatic Usage

const { Client } = require('reason-cli');

const client = new Client('ws://localhost:8080');

client.ready().subscribe(() => {
    client.request('document.list', []).subscribe({
        next: (data) => {
            client.disconnect();
        },
        error: (error) => {
            console.log('Error in example.js:', error.toString());
            client.disconnect();
        }
    });
});

Keywords

FAQs

Package last updated on 30 Dec 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc