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

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.

主站蜘蛛池模板: 鄂托克旗| 罗平县| 衡阳县| 三穗县| 黑山县| 建水县| 江山市| 嵩明县| 五寨县| 繁昌县| 普宁市| 屯门区| 交口县| 敦化市| 磴口县| 宜城市| 郧西县| 五华县| 马龙县| 萨嘎县| 洛扎县| 皋兰县| 惠水县| 雷州市| 平远县| 永定县| 庐江县| 永年县| 宜君县| 和顺县| 阜康市| 儋州市| 双城市| 喀喇| 湖南省| 杭州市| 石泉县| 常德市| 晋中市| 新丰县| 邯郸县|