Package Exports
- subsh
 - subsh/dist/index.js
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (subsh) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SubShell
Interactive Polkadot.js REPL for Your Substrate Node.
SubShell at its core is a simple cli tool wrapping the following lines of code.
#!/usr/bin/env -S node --experimental-repl-await
const { ApiPromise, WsProvider } = require(`@polkadot/api`)
const provider = new WsProvider(`wss://polkadot.api.onfinality.io/public-ws`);
const types={};
api = await ApiPromise.create({ provider, types});
...Thanks to esbuild and vm2, it can execute snippets written in ts/mjs/js, and load dependencies from urls like what deno does.
It's still under active development, so expect breaking changes.
There is an online version hosted at https://subshell.xyz for you to play with.
Install
$ npm install -g subshRun
$ subsh --provider wss://rpc.polkadot.io