- Mastering Node.js
- Sandro Pasquali
- 167字
- 2021-07-21 18:17:11
Conventions
In this book, you will find a number of styles of text 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: "To import modules into your Node program use the require
directive."
A block of code is set as follows:
var EventEmitter = require('events').EventEmitter; var Counter = function(init) { this.increment = function() { init++; this.emit('incremented', init); }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
var size = process.argv[2];
var totl = process.argv[3] || 100;
var buff = [];
for(var i=0; i < totl; i++) {
buff.push(new Buffer(size));
process.stdout.write(process.memoryUsage().heapTotal + "\n");
}
Any command-line input or output is written as follows:
> node process.js 1000000 100 > out.file
New terms and important words are shown in bold.
推薦閱讀
- Mastering AWS Lambda
- Moodle Administration Essentials
- 小創(chuàng)客玩轉(zhuǎn)圖形化編程
- Android Studio Essentials
- Java從入門(mén)到精通(第5版)
- 面向STEM的Scratch創(chuàng)新課程
- Python王者歸來(lái)
- JS全書(shū):JavaScript Web前端開(kāi)發(fā)指南
- Hands-On Natural Language Processing with Python
- 學(xué)習(xí)正則表達(dá)式
- OpenMP核心技術(shù)指南
- Instant jQuery Boilerplate for Plugins
- 零基礎(chǔ)學(xué)HTML+CSS第2版
- Java 9 with JShell
- C語(yǔ)言從入門(mén)到精通