Home > Web Front-end > JS Tutorial > 12 things that node.js has to say_node.js

12 things that node.js has to say_node.js

WBOY
Release: 2016-05-16 16:42:03
Original
1269 people have browsed it

1.node.js, server-side javascript, which allows running javascript code on the backend (out of the browser environment).

2. The event-driven, asynchronous I/O programming model (single-thread) is its core.

3. The javascript engine of node.js is v8, which comes from the google chrome project. V8 is claimed to be the fastest javascript engine in the world.

4.node.js has built-in http server support, which means you can easily implement a combination of website and server.

5.commonnjs attempts to define a set of APIs used by common applications, thereby filling the shortcomings of the JavaScript standard library being too simple. Node.js is an implementation of commonjs.

6.node package manager (npm), which can be used to install some applications online.

7.Basic usage of node: node xxx.js (script file name) or node -e "xxxxxxxxx" (code that can be executed directly)

8.node Enter -->repl (read-eval-print loop) mode, press ctrl c twice in succession to exit repl mode.

9. Use supervisor to refresh the script and use it for debugging. Installation: npm install -g supervisor Start application: supervisor app.js

10. Modules are the basic components of node.js applications, and files and modules are in one-to-one correspondence.

11. The package of node.js is a directory, and there is package.json in the top directory

12. Start angular-seed-master with node: node scripts/web-server.js

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template