In 2010, Ryan Dahl's luck started to change when Isaac Schluter created the Node Package Manager (NPM). The package manager allowed Node.js developers to share and maintain packages easily.
A CLI can be a distinct program provided by the operating system (OS), or an application. An example of OS CLI is the Unix Shell, while applications may not have one.
This article is a guide to developing a CLI with Node.js using two popular packages: yargs and chalk. The article is divided into three sections:
What would you need?
This is the last article out of a series of two, where Express.js will be analyzed in-depth. The first article [here] dealt with three topics:
If you don’t want to read and go straight to the tutorial's basic code, you can download it from my Github account [here].
A middleware is a function that can access the request and response objects from an HTTP request before it “hits” the route. Figure 01 represents it as an interface that acts as a bridge between…
Git is one of those tools a developer may interact with daily. However, many developers use the terms Git and GitHub interchangeably, which is wrong! Before we start talking about GitHub's Profile feature, it is imperative to clarify the difference between both of them.
Git is a version control tool that provides supervision over records by keeping track of changes in a set of files. GitHub is the region based somewhere on the Internet that hosts git repositories. That’s why you can use git with Bitbucket or GitLab, for example.
GitHub offers an elegant way to display a profile by…
Express.js is an open-source package widely used to develop a web application framework. The third-party software is a powerful tool that abstract’s the raw API from Node.js, providing an elegant and robust solution.
This is the first article of a series of two where Express.js will be analyzed in-depth. What will you learn?
What would you need?
When I first started with Node.js, I had no idea it could do so much with its own API. I remember going through the Express.js documentation and reading tutorials referring that Express.js did everything “under the hood.”.
I was hoping you wouldn’t take me wrong, Express is a wonderful tool, and I suggest its usage extensively. However, if you are anything like me, your curiosity about what Express's concept relies on is probably poking you.
This tutorial intends to guide you through implementing your own RESTful API with pure Node.js. Yes, you read it right! No third-parties whatsoever.