Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: “One of the browser’s security guarantees is that an HttpOnly
cookie will never be read out by a script.”
A block of code is set as follows:
const generalProxy = new Proxy(() => generalProxy, { get(target, name) { if (name === Symbol.toPrimitive) { return () => ({}).toString(); } else { return generalProxy(); } }, });
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# Initialize a new Node.js project npm init -y # Add the http-server package to the dependencies npm i http-server --save
Any command-line input or output is written as follows:
npx pilet debug
Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “As an example, when micro frontend 2 (MF2) from Figure 15.2 is loaded, it has to register Component B in the Component Registry.”
Tips or important notes
Appear like this.