开发者社区> 镜像站> NPM> readline-matchtoken
readline-matchtoken
Adds token matching to nodejs readline and visualizes it by jumping the cursor to it à la emacs.
Last updated 8 years ago by thlorenz .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install readline-matchtoken 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.0                                ...           latest (8 years ago)

1 Versions

  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (1)