0

Can I find a way to show the parameters of node.js interpreter like max-old-space-size in the node app itself? So that I can show them when I am running the program

JasonLuo
  • 3
  • 1
  • For *max-old-space-size* [this answer](https://stackoverflow.com/a/63495296/3083470) mentions `v8.getHeapStatistics()` – Taxel Oct 25 '21 at 10:05
  • What "parameter"? Command line arguments or what are you talking about: https://nodejs.org/docs/latest/api/process.html#processargv – Marc Oct 25 '21 at 10:06
  • Please provide enough code so others can better understand or reproduce the problem. – Community Oct 25 '21 at 14:33

1 Answers1

0

Either check process.argv if passed as arguments or process.config:

The process.config property returns an Object containing the JavaScript representation of the configure options used to compile the current Node.js executable. This is the same as the config.gypi file that was produced when running the ./configure script.

pzaenger
  • 11,381
  • 3
  • 45
  • 46