Quickly learn how to install and run the Node. js environment and the node. js Environment
InstallerNodeJS provides some installation programs that can be downloaded and installed at nodejs.org.
In Windows, select an installation file with the. msi suffix that matches the system version. In Mac OS X, select the install
This article focuses on. two key concepts of js: non-blocking IO and event loops are summarized appropriately. If you need them, you can refer to the following concepts to learn and use Node. javascript has been writing a web application and a RESTful web api using express and mongoose for two months. js official website homepage for
Parse the code deployment method of Node. js Based on modules and packages, and deploy node. js
Module path parsing rules
Experienced C programmers first write from the make file when writing a new program. Similarly, before using NodeJS to write a program, in order to have a good start, you must first prepare the dire
This article mainly introduces node. fs. the createWriteStream method is described in this article. createWriteStream method description, syntax, receiving parameters, use instances, and implementation source code. For more information, see
Method description:
Returns a WriteStream (output stream) object (writable stream ).
Syntax:
The Code is as follows:
Fs. createWriteStream (path, [options])
Because this method belongs to the fs module
This article mainly introduces node. fs. readSync method usage instructions. This article introduces fs. readSync method description, syntax, receive parameters, use instances, and implement Source Code. For more information, see
Method description:
Synchronous version of fs. read ().
Method returns a bytesRead (number of bytes read)
Syntax:
The Code is as follows:
Fs. readSync (fd, buffer, offset, length, position)
Because this method belongs to
This article mainly introduces node. fs. rmdir method usage instructions. This article introduces fs. rmdir method description, syntax, receive parameters, use instances, and implement Source Code. For more information, see
Method description:
Delete the file directory asynchronously.
Syntax:
The Code is as follows:
Fs. rmdir (path, [callback (err)])
Because this method belongs to the fs module, we need to introduce the fs module (var fs = require
This article mainly introduces node. fs. the lchmodSync method is described in this article. lchmodSync method description, syntax, receiving parameters, use instances and implementation source code. For more information, see
Method description:
Synchronous version of lchmod ().
Syntax:
The Code is as follows:
Fs. lchmodSync (fd, mode)
Because this method belongs to the fs module, we need to introduce the fs module (var fs = require ("fs") before
This article mainly introduces node. fs. the truncate method is described in this article. methods, syntax, parameters, instances, and source code for truncate. For more information, see
Method description:
File Content truncation.
Syntax:
The Code is as follows:
Fs. truncate (path, len, [callback (err)])
Because this method belongs to the fs module, we need to introduce the fs module (var fs = require ("fs") before use "))
Receiving parameters:
P
This article mainly introduces node. fs. fsyncSync method usage instructions. This article introduces fs. fsyncSync method description, syntax, receiving parameters, use instances and implementation source code. For more information, see
Method description:
Synchronous version of fsync (). Synchronize disk cache.
Syntax:
The Code is as follows:
Fs. fsyncSync (fd)
Because this method belongs to the fs module, we need to introduce the fs mo
This article mainly introduces node. http. response. the removeHeader method is described in this document. response. removeHeader method description, syntax, receiving parameters, use instances, and implementation source code. For more information, see
Method description:
Remove the header waiting for implicit sending.
Syntax:
The Code is as follows:
Response. removeHeader (name)
Receiving parameters:
The type of the name response heade
This article mainly introduces node. http. response. the writeHead method is described in this article. response. writeHead method description, syntax, receiving parameters, use instances and implementation source code. For more information, see
Method description:
Sends a response header to the requested client.
This function can be called at most once in a request. If this function is not called, a response header is automatically generated.
S
This article mainly introduces node. querystring. description of the parse method. This document describes querystring. parse method description, syntax, receive parameters, use instances, and implement Source Code. For more information, see
Method description:
Converts a string to an object. To put it bluntly, the parameter string on the url is converted into an array object. (See the example)
Syntax:
The Code is as follows:
Querystring. parse (st
This article describes how to build a Node. js development environment in Linux. Node allows JavaScript programs to be explained and run in the local operating system environment. For more information, see
1. install node. js in Linux
Ubuntu:
sudo apt-get install nodejs np
As Wikipedia says: "Node. js is a wrapper shell for the Google V8 engine, the LIBUV platform abstraction layer, and the core library that the subject uses Javscript to write. "Beyond that, it's worth noting that the goal of the author of node. js, Ryan Dar Ryan Dahl, is to create a site with real-time push capabilities
Node. js Study Notes (2)-modularization, node. js Study Notes
Welcome to reprint, but please indicate the source: http://blog.csdn.net/sysuzjz/article/details/43987289
Thanks: nodebeginner.org
An application consists of different modules. Now we will introduce these modules one by one.In the previous section of the ser
Summarize some error types in Node. js and summarize the node. js types.
Preface
Multiple types of errors may occur in Node. js applications. For example, if a syntax error or runtime error occurs, a JavaScript error is triggered.
Analyzes the callback and code design modes in Node. js asynchronous programming, and node. js design modes
The biggest selling point of NodeJS is the event mechanism and asynchronous IO, which is not transparent to developers. Developers need to write code in asynchronous mode to use this selling point, which has also
Node. js has quickly benefited from its event-driven and asynchronous features. This article will introduce 10 articles. It has been tested that it can greatly improve the skills of Node applications. Let's take a look at NodeJS one by one as a server-side JavaScript interpreter, which will change the concept of how the server works. It aims to help programmers b
Node. js for front-end pig and Node. js for pigFront-end pig flying traditional front-end pig most of the work is the page layout, rendering and animation effects, playing with is always a web shell, because there is no background support, this always makes front-end pig feel a little uncomfortable. The emergence of
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.