Using the CLI
Installation
The Runtime Edge can be also consumed from your terminal when you install it globally in your system:
npm -g install runtime-edgeUsage
The CLI provides you different ways to evaluate an script with Runtime Edge APIs constraints.
You can just start an interactive session with --repl:
runtime-edge --replEvaluate an inline script with --eval:
runtime-edge --eval "Object.getOwnPropertyNames(this)"Run a local HTTP server:
runtime-edge --listen examples/fetch.jsand more. In any case, you can see all this information typing runtime-edge --help.