Unix shell commands in Node.js

Hi friends, In this article, I will explain how to access shell commands in the node.js application.


Shelljs is the node dependency. If you want to use the Unix commands through the node.js application, we can use shell.js as a dependency.

If you want to run the Unix commands globally we need to install shelljs globally.

$ npm install [-g] shelljs