path-complete

tab path completion for stdin

Usage no npm install needed!

<script type="module">
  import pathComplete from 'https://cdn.skypack.dev/path-complete';
</script>

README

path-complete for Node.js by @tonylukasavage

path-complete is a Node.js package for command line TAB path completion.

Video Demonstration

https://vimeo.com/38800422

Installation

npm install path-complete

Basic Usage

You can run the extremely simple test case by executing node test/test.js or use the code below to do the same.

var pc = require('path-complete');
pc.getPathFromStdin(function(path) {
    console.log('');
    console.log('path: ' + path);
});