How To Install nodejs-async on CentOS 7

In this tutorial we learn how to install nodejs-async on CentOS 7. nodejs-async is Higher-order functions and common patterns for asynchronous code

Introduction

In this tutorial we learn how to install nodejs-async on CentOS 7.

What is nodejs-async

Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js, it can also be used directly in the browser. Async provides around 20 functions that include the usual ‘functional’ suspects (map, reduce, filter, forEach…) as well as some common patterns for asynchronous control flow (parallel, series, waterfall…). All these functions assume you follow the Node.js convention of providing a single callback as the last argument of your async function.

We can use yum or dnf to install nodejs-async on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-async.

Install nodejs-async on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install nodejs-async using yum by running the following command:

sudo yum -y install nodejs-async

Install nodejs-async on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install nodejs-async using dnf by running the following command:

sudo dnf -y install nodejs-async

How To Uninstall nodejs-async on CentOS 7

To uninstall only the nodejs-async package we can use the following command:

sudo dnf remove nodejs-async

References

Summary

In this tutorial we learn how to install nodejs-async on CentOS 7 using yum and dnf.