How To Install node-big.js on Debian 10

Learn how to install node-big.js on Debian 10 with this tutorial. node-big.js is small, fast, easy-to-use library for arbitrary-precision decimal arithmetic

Introduction

In this tutorial we learn how to install node-big.js on Debian 10.

What is node-big.js

node-big.js is:

This module is the little sister to bignumber.js:

  • Faster, smaller and easier-to-use than JavaScript versions of Java’s BigDecimal
  • Only 2.7 KB minified and gzipped
  • Simple API
  • Replicates the toExponential, toFixed and toPrecision methods of JavaScript’s Number type
  • Includes a sqrt method
  • Stores values in an accessible decimal floating point format
  • No dependencies
  • Comprehensive documentation and test set

Node.js is an event-based server-side JavaScript engine.

There are three methods to install node-big.js on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install node-big.js Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install node-big.js using apt-get by running the following command:

sudo apt-get -y install node-big.js

Install node-big.js Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install node-big.js using apt by running the following command:

sudo apt -y install node-big.js

Install node-big.js Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install node-big.js using aptitude by running the following command:

sudo aptitude -y install node-big.js

How To Uninstall node-big.js on Debian 10

To uninstall only the node-big.js package we can use the following command:

sudo apt-get remove node-big.js

Uninstall node-big.js And Its Dependencies

To uninstall node-big.js and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove node-big.js

Remove node-big.js Configurations and Data

To remove node-big.js configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge node-big.js

Remove node-big.js configuration, data, and all of its dependencies

We can use the following command to remove node-big.js configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge node-big.js

Dependencies

node-big.js have the following dependencies:

References

Summary

In this tutorial we learn how to install node-big.js package on Debian 10 using different package management tools: apt, apt-get and aptitude.