Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

how to run a script fuction in cli with node

Uptight Unicorn answered on February 15, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • bash commands in node
  • javascript run command
  • running shell commands nodejs
  • how to run commands in the command prompt using javascript
  • how to run a bash script with node js
  • execute command js
  • running shell commands nodejs
  • run or execute cmd using node js
  • run command node linux windows
  • shell command using node
  • npm run js file from command line
  • nodejs run cmd line code
  • nodejs command line
  • cmd commands on node js
  • js run command in terminal
  • node run js file in terminal
  • run node script from terminal
  • run node app locally
  • how to make a cli application in nodejs
  • how to run js file in node terminal
  • how to run javascript in terminal
  • cli run js
  • javascript execute cmd
  • execute shell command from html button node js
  • javascript running at node

  • how to run a script fuction in cli with node

    0

    If I've got some JS file db.js with a function init in it how could I call that function from the command line?  

     module.exports.init = function () {

    console.log('hi');

    };

    Popularity 3/10 Helpfulness 1/10 Language javascript
    Tags: javascript
    Link to this answer
    Share Copy Link
    Contributed on Feb 15 2023
    Uptight Unicorn
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.