How To Install node-json5 on Kali Linux
Introduction
In this tutorial we learn how to install node-json5
on Kali Linux.
What is node-json5
node-json5 is:
JSON5 is a proposed extension to JSON that aims to make it easier for humans to write and maintain by hand. It does this by adding some minimal syntax features directly from ECMAScript 5.
JSON5 remains a strict subset of JavaScript, adds no new data types, and works with all existing JSON content.
JSON5 is not an official successor to JSON, and JSON5 content may not work with existing JSON parsers. For this reason, JSON5 files use a new .json5 extension. (TODO: new MIME type needed too.)
The code here is a reference JavaScript implementation for both Node.js and all browsers. It??s based directly off of Douglas Crockford??s own JSON implementation, and it??s both robust and secure.
Node.js is an event-based server-side JavaScript engine.
There are three methods to install node-json5
on Kali Linux. 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-json5 Using apt-get
Update apt database with apt-get
using the following command.
After updating apt database, We can install node-json5
using apt-get
by running the following command:
Install node-json5 Using apt
Update apt database with apt
using the following command.
After updating apt database, We can install node-json5
using apt
by running the following command:
Install node-json5 Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
After updating apt database, We can install node-json5
using aptitude
by running the following command:
How To Uninstall node-json5 on Kali Linux
To uninstall only the node-json5
package we can use the following command:
Uninstall node-json5 And Its Dependencies
To uninstall node-json5
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
Remove node-json5 Configurations and Data
To remove node-json5
configuration and data from Kali Linux we can use the following command:
Remove node-json5 configuration, data, and all of its dependencies
We can use the following command to remove node-json5
configurations, data and all of its dependencies, we can use the following command:
Dependencies
node-json5 have the following dependencies:
References
Summary
In this tutorial we learn how to install node-json5
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.