January 2018
Beginner
658 pages
13h 10m
English
Now in order to get started, we need to make some changes inside of app.js. We're going to start with the add command (for more information, please refer to the Adding and saving notes section in the previous chapter).
We want to add a few helpful pieces of information in argv function inside app.js, that will:
Now we are going to be chaining property calls, which means right before I access .argv I want to call .command, and then I'll call .argv on the return value from command as shown here:
const argv = yargs .command() .argv;
Now this chaining syntax probably looks familiar if you've ...