Can node.js be used as a general framework for running server-side Javascript, especially for web applications that are completely unconnected with non-blocking and asynchronous I / O? In particular, I want to know if I can run arbitrary Javascript on a (web server) without using other node.js functionality.
Yes. There are many web frameworks built on node. The most famous Express based Connect ,
Connect Ruby Rack node
:
node.js
I/O - -, , - node .
, node.js , :
$ cat hello.js console.log('Hello world!'); $ node hello.js Hello world!
, .
, "node.js" v8, , , Javascript. - , , . , node.js.
. , Node / (, TCP ..), JavaScript Chrome V8.
Node :
Run famous javascript file
$ Node some_script.js
Performed in REPL (interactive mode)
$ node
var i = 1;console.log (i);1
Source: https://habr.com/ru/post/1784577/More articles:How to close iPad application in Objective-C? - iphoneExecute a batch file in C # - c #How to import the source code of an Android application project into Eclipse? - androidNeed help with random mines in minesweeper game - javaUsing the BasedOn property with a style defined in another dictionary - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1784578/excel-macro-to-convert-html-entities-to-text&usg=ALkJrhg52bKdlegsHuGQoYa0ak3vPDvejwHow to restart java program from java? - javaHiding a column in a role-based table in MVC - asp.net-mvcDouble click the button - androidCreate Winforms Full Screen - vb.netAll Articles