- JavaScript Cloud Native Development Cookbook
- John Gilbert
- 179字
- 2021-07-16 18:03:22
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The first thing to note is that we must define runtime: nodejs8.10 in the serverless.yml file."
A block of code is set as follows:
module.exports.hello = (event, context, callback) => {
console.log('event: %j', event);
console.log('env: %j', process.env);
callback(null, 'success');
};
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
service: cncb-create-function
...
functions:
hello:
handler: handler.hello
Any command-line input or output is written as follows:
$ npm run dp:lcl -- -s $MY_STAGE
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select Monitors | New Monitor | Event"