Difference between revisions of "Node.js"

From MgmtWiki
Jump to: navigation, search
(Full Title or Meme)
(Context)
 
Line 5: Line 5:
 
* This is an attempt to enable JavaScript programmers to work in a familiar language on both the client and the server.
 
* This is an attempt to enable JavaScript programmers to work in a familiar language on both the client and the server.
 
* It really became popular when metalanguage like [[Typescript]] were crafted to pre-compile fully typed language into the limited functionality of JavaScript.
 
* It really became popular when metalanguage like [[Typescript]] were crafted to pre-compile fully typed language into the limited functionality of JavaScript.
 +
 +
==Q&A==
 +
*What does the command "node ." do?
 +
*By default Node.js is trying to load a module located in the folder that you are passing to it as an argument (. - just bash variant of the current folder). Then it runs whatever is written in the "main" section of the package.json file found in this folder. If no package.json found in the folder or if no "main" section is present, then Node.js will try to run the index.js file in this particular folder you are passing.
  
 
==References==
 
==References==

Latest revision as of 11:39, 28 October 2021

Full Title or Meme

Yet another web server platform or even ecosystem.

Context

  • This is an attempt to enable JavaScript programmers to work in a familiar language on both the client and the server.
  • It really became popular when metalanguage like Typescript were crafted to pre-compile fully typed language into the limited functionality of JavaScript.

Q&A

  • What does the command "node ." do?
  • By default Node.js is trying to load a module located in the folder that you are passing to it as an argument (. - just bash variant of the current folder). Then it runs whatever is written in the "main" section of the package.json file found in this folder. If no package.json found in the folder or if no "main" section is present, then Node.js will try to run the index.js file in this particular folder you are passing.

References