How To Install nodejs-stringset on CentOS 7
Introduction
In this tutorial we learn how to install nodejs-stringset
on CentOS 7.
What is nodejs-stringset
A fast and robust stringset implementation that can hold any string items, including proto, with minimal overhead compared to a plain object. Works in node and browsers. The API is created to be as close to the ES6 Set API as possible. Prefer ss.remove(“key”) for deleting a key. ES6 Set uses set.delete(“key”) instead and for that reason ss‘delete’ is available as a stringset alias as well. Never do ss.delete(“key”) unless you’re certain to be in the land of ES5 or later.
We can use yum
or dnf
to install nodejs-stringset
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-stringset.
Install nodejs-stringset on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install nodejs-stringset
using yum
by running the following command:
Install nodejs-stringset 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.
After updating yum database, We can install nodejs-stringset
using dnf
by running the following command:
How To Uninstall nodejs-stringset on CentOS 7
To uninstall only the nodejs-stringset
package we can use the following command:
References
Summary
In this tutorial we learn how to install nodejs-stringset
on CentOS 7 using yum
and dnf
.