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

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.

主站蜘蛛池模板: 越西县| 腾冲县| 巴里| 中江县| 贵定县| 湖南省| 高安市| 宜春市| 宁化县| 晋中市| 郁南县| 衢州市| 中卫市| 富顺县| 徐州市| 小金县| 河间市| 闽侯县| 营山县| 绥滨县| 视频| 仙居县| 延川县| 涿鹿县| 靖西县| 四会市| 水富县| 仁寿县| 双流县| 南江县| 玉树县| 巴马| 黔西县| 桂东县| 宜章县| 正阳县| 罗定市| 淳安县| 慈溪市| 临澧县| 宝鸡市|