How To Install coffee-script on CentOS 7

In this tutorial we learn how to install coffee-script on CentOS 7. coffee-script is A programming language that transcompiles to JavaScript

Introduction

In this tutorial we learn how to install coffee-script on CentOS 7.

What is coffee-script

CoffeeScript is a little language that compiles into JavaScript. Underneath all of those embarrassing braces and semicolons, JavaScript has always had a gorgeous object model at its heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way. The golden rule of CoffeeScript is code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript implementation, and tends to run as fast or faster than the equivalent handwritten JavaScript.

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

Install coffee-script on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install coffee-script

Install coffee-script 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 coffee-script using dnf by running the following command:

sudo dnf -y install coffee-script

How To Uninstall coffee-script on CentOS 7

To uninstall only the coffee-script package we can use the following command:

sudo dnf remove coffee-script

References

Summary

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