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

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.

主站蜘蛛池模板: 阳原县| 白城市| 增城市| 建宁县| 香港 | 阿荣旗| 梧州市| 永新县| 北辰区| 永胜县| 北碚区| 桐柏县| 松桃| 临湘市| 青龙| 房山区| 白玉县| 庐江县| 弥渡县| 磐石市| 武冈市| 兴安县| 博客| 如东县| 襄城县| 舞阳县| 鱼台县| 郯城县| 鹤峰县| 夏津县| 津南区| 江川县| 贵阳市| 大埔县| 大新县| 南乐县| 牙克石市| 固原市| 信宜市| 繁昌县| 库车县|