Chapter 11. Writing command-line applications
This chapter covers
- Designing command-line applications by using common conventions
- Communicating with pipes
- Using exit codes
Node command-line utilities are used everywhere, from project automation tools, such as Gulp and Yeoman, to XML and JSON parsers. If youâve ever wondered how to build command-line tools with Node, this chapter will show you everything you need to know to get started. Youâll learn how Node programs accept command-line arguments and how to handle I/O with pipes. Weâve also included shell tips that will help you use the command line more effectively.
Although writing command-line tools with Node isnât hard, itâs important to follow community conventions. This ...