Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 2.63 KB

7-cli.md

File metadata and controls

37 lines (25 loc) · 2.63 KB

🐢 Node.js

📟 CLI

The Node.js and JavaScript ecosystem is very vast and therefore very interesting for building CLI (command line interface) tools.

These tools are very commonly used and developed to simplify the life of developers and integrators in various projects. Many frameworks and libraries have their own CLI to offer developers an optimal experience. We use them every day (sometimes without even realizing it).

I often recommend to the beginner to discover Node.js by building a CLI (for example a small RPG game in text format playable with commands... it's really an idea of a small project that pushes you to improve your level of mastery in JavaScript).

If you want to get started, I recommend this little guide or also Create a command line tool (french) which will teach you how to set up a simple CLI. Also I recommend you to read the npm link doc as well as the doc on the bin field of the package.json.

Other resources (talks and articles) on the subject:

Some packages I recommend:

If you ever want to see a concrete case I invite you to look at the CLI of one of my projects Node-secure or npq of Liran tal.


⬅️ 🐢 Node.js: 👽 Native API (native addon creation in C and C++) | ➡️ 🐢 Node.js: 📦 Packages