Socket
Socket
Sign inDemoInstall

vorpal-autocomplete-fs

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

vorpal-autocomplete-fs

File System autocompletion for Vorpal


Version published
Maintainers
1
Weekly downloads
770
decreased by-3.99%

Weekly downloads

Readme

Source

Vorpal - File System Autocompletion

Build Status Coverage Status XO code style

An extension to Vorpal that provides File System-based tabbed autocompletion for a given command. This is an exact match of the autocomplete functionality provided in Unix commands like ls or cat.

Installation

npm install vorpal-autocomplete-fs
npm install vorpal

Getting Started

const vorpal = require('vorpal')();
const fsAutocomplete = require('vorpal-autocomplete-fs');

vorpal.delimiter('myapp$').show();

vorpal
  .command('cat [dirs...]')
  .autocomplete(fsAutocomplete());
$ node myapp.js
myapp$ cat [tab] [tab]
bin/  myapp.js  package.json  README.md
myapp~$ cat m [tab]
myapp~$ cat myapp.js

Only show directories

To omit files from the autocomplete and only show directories, pass in the directory option:

vorpal
  .command('cat [dirs...]')
  .autocomplete(fsAutocomplete({directory: true}));

License

MIT © David Caccavella

Keywords

FAQs

Last updated on 29 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc