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

  • MEAN Blueprints
  • Robert Onodi
  • 219字
  • 2021-07-16 10:40:18

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.

主站蜘蛛池模板: 建瓯市| 杂多县| 安宁市| 泾川县| 全椒县| 贵州省| 溧阳市| 察哈| 牙克石市| 依兰县| 沙坪坝区| 巨鹿县| 台州市| 株洲县| 鲁山县| 吉安市| 文成县| 涞水县| 麻江县| 贵阳市| 柘城县| 铜鼓县| 宝应县| 图们市| 苍溪县| 建始县| 罗源县| 昔阳县| 和田县| 简阳市| 常德市| 报价| 山丹县| 洪江市| 天镇县| 聂荣县| 文登市| 丹阳市| 从江县| 任丘市| 万宁市|