Building a Node JS interactive CLI

added by JavaScript Kicks
7/11/2018 7:29:12 AM

713 Views

NodeJS can be very useful when it comes to building Command-line Interfaces also known as CLI's. In this post, I'll teach you how to build a CLI that asks some questions and creates a file, based on the answers. Let's start by creating a brand new npm package mkdir my-scriptcd my-scriptnpm init NPM will ask some questions.


0 comments