This article mainly introduces the amazing node. js reading notes node's Learning Summary. if you need a friend, you can refer to the project you will be doing this week (it should be said that this is the case all the time). let's make a conclusion based on different situations ~ This record is a summary of node
Node. js write stream createWriteStream ---- from simple to deep,
CreateWriteStream write stream
Fs-based module
Let fs = require ("fs ");
CreateWriteStream creates a write stream
Create a 2.txt file first.
Let ws = fs. createWriteStream ('./2.txt ');
If a file is not stored, it will be created. If yes, the file class will be cleared before the file is wri
installation.After successful installation, in command prompt input:node-v View the installation version, the output version is installed successfully
About NPM
Node pageaged Modules https://npmjs.org/(NPM) is included in Windows node. JS installation package installation. This node.
Base64 encoding and decoding for node. js learning, and node. jsbase64 Encoding
I. Base64 encoding Origin
Why is Base64 encoded? Because some network transmission channels do not support all bytes, for example, traditional mail only supports transmission of visible characters, control characters like ASCII codes cannot
To search for the node encapsulation module:At the command prompt, use:NPM Search search_string> command searches the module in the node package registry.For example:NPM Search OpenSSLTo install the Node encapsulation module:At the command prompt, use:NPM Install For example:NPM Install ExpressThe output from the NPM Install command shows the HTTP request to down
Node. js learning summary on mongodb operations, node. jsmongodb
I. Preparations
1. Create a table to be read in mongodb
Create a database named TestCopy codeThe Code is as follows:Use extension test;Insert data to the user tableCopy codeThe Code is as follows:Db. user. insert ({Name: 'flyoung ',Age: '18 ',Sex: true});
[Node. js learning] -- (7) -- install Mongodb and node. jsmongodb
Download and install mongodb
Reference: mongodb official website http://www.mongodb.org/
Download mongodb-win32-x86_64-2008plus-ssl-3.0.0-signed, msi
Knowledge: view the number of digits in the system
wmic os get osarchitecture
Install
Reference: Off
JS doing deep learning, accidental discovery and introductionRecently I first dabbled with node. js, and used it to develop a graduation design Web module, and then through the call System command in node execution Python file way
: node. JS distribution, following the MIT license.
Who Uses node. js?Following is the link on GitHub wiki containing a exhaustive list of projects, application and companies which are using node. js. This list include EBay, Ge
Js deep learning-differences between js prototype constructor attributes-jsconstructor
In many js plug-ins, these two attributes are frequently used. I also used them when I write plug-ins myself. I know how to use them, but I don't know the specific differences. I have stud
This article compiles from a stack overflow how to start learning about node. js's wiki post, a resource list that browses close to 600,000 times, thousands of collections, and tops. Specially organized to publish here, which added some Chinese references.Learning Guides and Tutorials
Nodeschool.io Interactive Course
Node's art (node profile)
Hel
This article compiles from a stack overflow how to start learning about node. js's wiki post, a resource list that browses close to 600,000 times, thousands of collections, and tops. Specially organized to publish here, which added some Chinese references.Learning Guides and Tutorials
Nodeschool.io Interactive Course
Node's art (node profile)
Hel
Iii. using node. js for Web Development1. Install Express Express is the officially recommended Web development framework and is very powerful.Enter NPM Install-g Express on the command line for global installation Express This means that the installation is complete. But at this point we do not succeed in executing the express-h command, because express4.0 will need to install the Express-generator p
Js deep learning-differences between js prototype constructor attributes
In many js plug-ins, these two attributes are frequently used. I also used them when I write plug-ins myself. I know how to use them, but I don't know the specific differences. I have studied them today
In many JS plug-ins appear in the frequency of these two properties is very high, I write the plug-in, also used to, know with, do not know the specific differences, today studied the next,Constructor returns a constructor for an object (an instance of a type), and the properties and methods added through prototype are not returned.Prototype returns a prototype of the type, not the part of the constructor after meals.Examples are as follows:In the Goo
Web developers are increasingly interested in Node. js, and more companies and developers are trying to use it.Node. jsTo implement some I/O-intensive businesses with high real-time requirements.
I introduced some good books and cases to improve the node. js development progress,On the
6 Steps to Learning node. jsFrom just contact with node. js to now, oneself is also all the way to touch tumbling climbed over, although not to say is what master, but for how to learn node. js, still have some personal opinion, t
Recently started learning node. js, Basic, deep, express,koa,react,keystone,mongress, And so on all kinds of things about node. js, each of the learning of the confusion, because there
,response) {//when the client sends a request to the server-side current service (the port number is 80), and the current service has successfully received the request //Request : Holds the request information for all clients, including the data content that the client passes to the server through the question-mark argument //Console.log (Request.url);//The address requested by the client, which is obtained by the server through Request.url, is not including localhost or IP address informa
, using var variable can be output by Console.log ().REPL command
Ctrl + C?- exits the current terminal.
Ctrl + C Press two times ?- Exit Node REPL .
Ctrl + D?- exits Node REPL.
Upward / downward Key ?- View the history command of the input
Tab Key ?- List Current Commands
.help?- list the Use commands
.break?- exit multi-line expression
. Clear?- exit multi-line expression
.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.