How To Develop An Interactive Command Line Application Using Node.js

KTJ5-how-to-develop-an-interactive-command-line-applica.jpg
Over the last five years, Node.js1 has helped to bring uniformity to software development. You can do anything in Node.js, whether it be front-end development, server-side scripting, cross-platform desktop applications, cross-platform mobile applications, Internet of Things, you name it. Writing command line tools has also become easier than ever before because of Node.js not just any command line tools, but tools that are interactive, useful and less time-consuming to develop. If you are a front-end developer, then you must have heard of or worked on Gulp2, Angular CLI3, Cordova4, Yeoman5 and others. Have you ever wondered how they work? For example, in the case of Angular CLI, by running a command like ng new , you end up creating an Angular project with basic configuration. Tools such as Yeoman ask for runtime inputs that eventually help you to customize a projects configuration as well. Some generators in Yeoman help you to deploy a project in your production environment. That is exactly what we are going to learn today. In this tutorial, we will develop a command line application that accepts a CSV file of customer information, and using the SendGrid API10, we will send emails to them. Here are the contents of this tutorial:

Read Full Article at https://www.smashingmagazine.com/2017/03/interactive-command-line-application-node-js/

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Tags: , , , , , , , , , , , , , , , , , , , , , , ,