Unix shell commands in Node.js

Edison Devadoss
May 17, 2021

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

https://www.photopea.com/

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:

https://carbon.now.sh/

--

--

Edison Devadoss

Software developer / JavaScript / React / React Native / Firebase / Node.js / C Programming / Book Reader