@rchain-community/repl

1.2.0 • Public • Published

repl

Node.js based RNode REPL interface.

This package enabled applications to use the interal gRPC interface of the RChain RNode server to execute Eval and Run commands.

Library usage

Install using NPM:

npm i @rchain-community/repl

Usage:

const REPL = require('@rchain-community/repl')

const repl = new REPL(host, port)
repl.eval(myRholangCode)
  .then(output => {
    console.log(output)
  })
  .catch(err => {
    console.log(err)
  })

CLI usage

You can also use this package as a CLI script to execute Rholang programs.

In order to do so, first install it globally:

npm i -g @rchain-community/repl

Usage:

rnode-repl <program.rho> [host] [port]

Readme

Keywords

Package Sidebar

Install

npm i @rchain-community/repl

Weekly Downloads

3

Version

1.2.0

License

Apache-2.0

Unpacked Size

4.5 kB

Total Files

7

Last publish

Collaborators

  • tschoffelen