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

Conventions

In this book, you will find a number of text styles 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: "The headers property of the replay object is an array of regular expressions."

A block of code is set as follows:

var result = b.operation(1, 2);

expect(result).to.be.deep.equal({
  args: [1, 2],
  result: 3
});

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

module.exports = function (findConfiguration) {
  return function () {
    findConfiguration('default');
    return validatorWith([
      nonPositiveValidationRule,
      nonDivisibleValidationRule(3, 'error.three'),
      nonDivisibleValidationRule(5, 'error.five')
    ]);
  };
};

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

$ me@~> mkdir validator
$ me@~> cd validator
$ me@~/validator> npm init

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "You can download and execute a nice installer by going to Node.js website and clicking on Install."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 礼泉县| 永和县| 昌乐县| 遂川县| 新乐市| 石渠县| 句容市| 通许县| 吉木乃县| 合水县| 托克托县| 浦江县| 陆丰市| 祁门县| 遂昌县| 竹山县| 陇西县| 诸城市| 迭部县| 定边县| 常德市| 霍州市| 山阳县| 佳木斯市| 化德县| 华宁县| 册亨县| 集安市| 赫章县| 大名县| 从江县| 高邑县| 平谷区| 长子县| 本溪| 伊吾县| 阿拉尔市| 余姚市| 获嘉县| 宣威市| 都兰县|