# vorpal-autocomplete-fs

> File System autocompletion for Vorpal

Latest version **0.0.3** (published 2016-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install vorpal-autocomplete-fs
pnpm add vorpal-autocomplete-fs
yarn add vorpal-autocomplete-fs
bun add vorpal-autocomplete-fs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-01-29 |
| First published | 2016-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.11.16 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | dthree |
| Maintainers | dthree |
| Keywords | vorpal, extension, autocompletion, autocomplete, tab, tabbed completion, fs, file system, cli, immersive, repl, vorpal, vorpal.js, linux, unix, posix |

## Links

- npm: https://www.npmjs.com/package/vorpal-autocomplete-fs
- Repository: https://github.com/vorpaljs/vorpal-autocomplete-fs
- Homepage: https://github.com/vorpaljs/vorpal-autocomplete-fs#readme
- Issues: https://github.com/vorpaljs/vorpal-autocomplete-fs/issues
- npm.io page: https://npm.io/package/vorpal-autocomplete-fs

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^3.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-01-29
- 0.0.2 — 2016-01-29
- 0.0.1 — 2016-01-28

## README

# Vorpal - File System Autocompletion

[![Build Status](https://travis-ci.org/vorpaljs/vorpal-autocomplete-fs.svg)](https://travis-ci.org/vorpaljs/vorpal-autocomplete-fs)
[![Coverage Status](https://coveralls.io/repos/vorpaljs/vorpal-autocomplete-fs/badge.svg?branch=master)](https://coveralls.io/r/vorpaljs/vorpal-autocomplete-fs?branch=master)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)

An extension to [Vorpal](https://github.com/dthree/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

```bash
npm install vorpal-autocomplete-fs
npm install vorpal
```

### Getting Started

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

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

vorpal
  .command('cat [dirs...]')
  .autocomplete(fsAutocomplete());
```

```bash
$ 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:

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

### License

MIT © [David Caccavella](https://github.com/dthree)

---
_Source: https://npm.io/package/vorpal-autocomplete-fs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
