Member-only story
Streamlining JavaScript/TypeScript Development with ntl: An Interactive Task Runner
ntl
is invoked inside a JavaScript/TypeScript directory with an existing package.json
fileIn Node.js development, managing package.json scripts is crucial for tasks like starting development servers, running tests, or building your project. While the standard npm run <script> command works, it can become cumbersome in complex projects with many scripts. Let’s face it — typing npm run
commands repeatedly gets old fast. That’s where ntl, the Node Task List, comes in. This interactive CLI tool simplifies managing package.json scripts, enhancing developer experience.
What Makes ntl Special?
Think of ntl
as your project's control center. Instead of memorizing script names or constantly referring back to package.json
, you get an interactive menu right in your terminal. Arrow keys, numbers, and Enter - that's all you need to know about.
Getting Started
First, install ntl
globally:
npm install -g ntl
Now you’re ready to roll. Navigate to any Node.js project and type:
ntl
That’s it! You’ll see every available script at your fingertips. You can use arrow keys or vim keys (j,k) for moving up and down the list.