官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "To import modules into your Node program use the require directive."

A block of code is set as follows:

var EventEmitter = require('events').EventEmitter;
var Counter = function(init) {
  this.increment = function() {
      init++; 
      this.emit('incremented', init);
  }

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

var size = process.argv[2];
var totl = process.argv[3] || 100;
var buff = [];
for(var i=0; i < totl; i++) {
  buff.push(new Buffer(size));
  process.stdout.write(process.memoryUsage().heapTotal + "\n");
}

Any command-line input or output is written as follows:

> node process.js 1000000 100 > out.file

New terms and important words are shown in bold.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 江华| 乌鲁木齐县| 县级市| 乌兰县| 平舆县| 张北县| 合江县| 繁峙县| 牡丹江市| 浮山县| 绥芬河市| 会同县| 昭平县| 若尔盖县| 泽州县| 盐池县| 长兴县| 黄冈市| 平果县| 富顺县| 深圳市| 广水市| 衡阳县| 宁陵县| 桦甸市| 盐山县| 迭部县| 中方县| 桂东县| 休宁县| 上林县| 新昌县| 卓尼县| 龙山县| 沾化县| 金平| 冷水江市| 广宗县| 贡嘎县| 芜湖市| 威信县|