Forrest logo
back to context overview

node

List of commands for node:

  • node:application:run This command runs a Node.js project by executing the entry file specified in the project.
    $ node ${entry-file}
    try on your machine
    explain this command
  • node:install Installs Node.js using the package manager (apt-get) in Linux
    $ apt-get install nodejs
    try on your machine
    explain this command
  • node:install:version Install a given node js version.
    $ nvm install ${version}
    try on your machine
    explain this command
  • node:tldr:01bac node: Activate inspector, pausing execution until a debugger is connected once source code is fully parsed.
    $ node --no-lazy --inspect-brk ${filename}
    try on your machine
    explain this command
  • node:tldr:11602 node: Evaluate JavaScript code by passing it as an argument.
    $ node -e "${code}"
    try on your machine
    explain this command
  • node:tldr:36c45 node: Start a REPL (interactive shell).
    $ node
    try on your machine
    explain this command
  • node:tldr:a6fc1 node: Evaluate and print the result, useful to print node's dependencies versions.
    $ node -p "process.versions"
    try on your machine
    explain this command
  • node:tldr:bb1ac node: Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+).
    $ node --watch ${filename}
    try on your machine
    explain this command
back to context overview