readline-matchtoken

0.1.0 • Public • Published

readline-matchtoken build status

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 = 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i readline-matchtoken

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • thlorenz