Looking for a convenient way to list all scripts
from a package.json
file? What if you could have an interactive list that not only gives you a quick glance but also allows you to run any of these tasks right away? Look no further, Node Task List is the tool you've been looking for. 😊
They say an image is worth a thousand words and in the case of interactive cli tools that can't be more true, check out how it works in a quick gif demo:
A little bit of history...
ntl started out as a quick prototype side project almost 4 years ago and since then has been improving and adding features thanks to contributions from the community around it. (Shout out to @mkuehnel that has been the most active contributor) ❤️
About a month ago I finally managed to start taking some time to clean up the project, add a proper test suite with 100% coverage and managed to merge the main feature the community had been always asking for: ability to easily repeat the last ran task.
Along with all that work I also did a bit of rebranding, giving the project the more descriptive name of Node Task List and a nice logo. 😄
Features
Outside the already previously mentioned features, ntl also has:
- Multiple interactive interfaces (menu list, autocomplete fuzzy search)
- Many options to customize the UI (exclude scripts, amount of items, etc)
- Add descriptions to each task that can be shown in the UI
- Easy to repeat last ran script (using a
nt
command alias) - Run multiple tasks (can also easily repeat multiple ran tasks)
If you want to learn more about the features and possible customization check out the project page.
Sold on it? Want to give it a try?
⬇️ Install it now using npm: npm install -g ntl
Also if you're interested in participating, check the project on GitHub 😄
Node Task List
Interactive cli tool that lists and run package.json
scripts.
An iPipeTo workflow
Table of Contents
- Install
- Usage
- Features
- Customize
- Repeat the last ran task
- Run multiple tasks
- Run in autocomplete or fuzzy search mode
- Tips
- Help
- License
⬇️ Install
$ npm install -g ntl
🔎 Usage
Navigate to any folder containing a package.json
file (usually a Node.js project) that has configured scripts, then just use the ntl command:
ntl
You can also specify a path to a project folder containing a package.json
file:
ntl ./my-node-project
😍 Features
- Interactive interface that lists all
package.json
scripts - Select any item in the interactive interface to execute that task
- Add descriptions to each task that can be…
Top comments (2)
Nice work Ruy! Is Node Task List used in Yeoman, or is that something else?
oh great question! 😄 actually ntl uses iPipeTo which itself uses Inquirer.js which is the same library Yeoman uses to create its interactive interfaces!