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

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: "Create a file called app/models/token.js."

A block of code is set as follows:

'use strict';

const LEN = 256;
const SALT_LEN = 64;
const ITERATIONS = 10000;
const DIGEST = 'sha256';
const crypto = require('crypto');

module.exports.hash = hashPassword;
module.exports.verify = verify;

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

require('./config/express').init(app);
require('./config/routes').init(app);

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

 Authentication
 Basic authentication
 √ should authenticate a user and return a new token
 √ should not authenticate a user with invalid credentials
 2 passing

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: "It triggers an event when the Save button is clicked on and the form is submitted."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 泽库县| 女性| 远安县| 镇康县| 马关县| 宜城市| 中牟县| 阜宁县| 镇宁| 盐源县| 孝昌县| 鄂伦春自治旗| 铅山县| 闻喜县| 汕尾市| 团风县| 昌都县| 绥芬河市| 建德市| 甘洛县| 三亚市| 宜兴市| 于田县| 龙泉市| 贡嘎县| 大田县| 禹州市| 石泉县| 阿图什市| 威远县| 萨迦县| 民权县| 云梦县| 泗阳县| 乌海市| 宁津县| 名山县| 文成县| 红桥区| 阳曲县| 基隆市|