tabtab is a Node.js library designed to assist in building command-line interface (CLI) programs with robust tab completion capabilities for various shells, including Bash, Zsh, and Fish. Currently in version 3.0.2, this package underwent a significant rewrite in its 3.x series, aiming for simplification, reduced abstraction, and improved clarity. It differentiates itself by leveraging a similar shell script bridge technique to npm's acclaimed completion system, ensuring a familiar and effective user experience. While it doesn't have a rigid release cadence, major updates like the 3.0.0 overhaul introduce substantial changes, focusing on modern Node.js environments (Node.js > 7.10.1). The library specifically addresses the need for robust, fast, and debuggable completion logic for Node.js projects, moving away from previous versions' complexities and certain features like caching.
npm install tabtabVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up, log, and parse tab completions for a Node.js CLI using `tabtab` and `minimist`, including installation and uninstallation commands for a hypothetical `tabtab-test` program.
Use tabtab v2.x for older Node.js versions or seek alternative completion libraries for Windows-specific CLI tools.
Applications relying on tabtab's internal caching will need to implement their own caching logic if required.
Upgrade your Node.js environment to 7.10.1 or newer, or downgrade tabtab to version 2.2.x for compatibility with Node.js 6.
Ensure your CLI application integrates `tabtab` purely as a library, calling its functions directly within your Node.js script.
Thoroughly test completion behavior in Zsh and Fish shells and report any inconsistencies to the project maintainers. Be prepared for potential workarounds if issues arise.
Upgrade Node.js to version 7.10.1 or newer, or install `tabtab@2.2.x` using `npm install tabtab@2.2.x`.
Ensure `tabtab.parse(process.env)` is correctly called and its result is passed to your completion handler. Verify the `env` object structure if manually creating it.
After running `install-completion`, restart your terminal or manually source your shell configuration file (e.g., `source ~/.bashrc`). Double-check the install output for instructions.
tabtab v3.x is not compatible with Windows. Use `tabtab@2.2.x` if you need some level of Windows support with older Node.js, or choose a different completion library for Windows.
No dependency data recorded yet.