S
S
Sergo Sergo2014-12-06 15:51:33
Node.js
Sergo Sergo, 2014-12-06 15:51:33

Pass parameters when running node js server?

Is it possible to node index.jspass parameters at startup, for example, login and password. Let's say I want to run a script via ssh on a php server, but I need to pass certain parameters.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2014-12-06
@BuriK666

nodejs.org/docs/latest/api/process.html#process_pr...
test.js: Passing
passwords as arguments is a bad idea, because these passwords will be visible in /proc/#/cmdline

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question