Unix shell commands in Node.js
May 17, 2021
Hi friends, In this article, I will explain how to access shell commands in the node.js application.
Why do we need the shelljs
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.
Installations:
$ npm install [-g] shelljs
Example:
Thank you for reading. Have a nice day.