readline-matchtoken

Adds token matching to nodejs readline and visualizes it by jumping the cursor to it à la emacs.

readline-matchtoken

Adds token matching to nodejs readline and visualizes it by jumping the cursor to it à la emacs.

npm i readline-matchtoken
npm explore readline-matchtoken && npm run demo
var rmt = require('')
  , repl = require('repl');
 
var r = repl.start({
    prompt: "",
    input: process.stdin,
    output: process.stdout
  });
 
rmt(r.rli);
 
r.displayPrompt();

Although this example starts a repl, a readline interface is all that is needed for token matching to be applied.