Languages
[Edit]
EN

Bash - execute string command in node parameter (node.js)

9 points
Created by:
Elmer-Li
396

In this short article, we would like to show how to execute some source code in node command parameter under Bash.

Quick solution:

node -e "console.log('Test ...')"

Output:

Test ...

 

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join