How To Install Json2module On Debian, Ubuntu And Kali?

How To Install Json2module On Debian, Ubuntu And Kali?

json2module

Convert a JSON object to an ES6 module

Maintainer: Debian Javascript Maintainers



Section: javascript

Install json2module

  • Debian apt-get install node-json2module Click to copy
  • Ubuntu apt-get install node-json2module Click to copy
  • Kali Linux apt-get install node-json2module Click to copy

node-json2module

Convert a JSON object to an ES6 module

For example, given a package.json file and run this through json2module, youu2019ll get ES6 module as output. This is particularly useful for exporting a version number defined in your package.json file when using Rollup. Unlike rollup-plugin-json, which enables Rollup to parse JSON directly, json2module creates standard ES6 modules that can be consumed by any client. Node.js is an event-based server-side JavaScript engine.

Install the latest version of json2module in Debian, Ubuntu and Kali from terminal. To install the json2module just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of json2module from the respository and install it in your computer/server.