Skip to content

Node.js based RNode REPL interface.

Notifications You must be signed in to change notification settings

spreston8/rnode-repl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Repo usage

  • Clone project and run npm i
rnode-repl <program.rho> [host] [port]

Library usage (old)

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]

About

Node.js based RNode REPL interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%