readline-matchtoken
Adds token matching to nodejs readline and visualizes it by jumping the cursor to it à la emacs.
Installation
npm i readline-matchtoken
Demo
npm explore readline-matchtoken && npm run demo
Usage
var rmt = repl = ; var r = replstart prompt: "> " input: processstdin output: processstdout ; ; r;
Although this example starts a repl
, a readline
interface is all that is needed for
token matching to be applied.