Excerpt 1
se of the author and do not represent the publisher’s views. While the publisher and the author have used good faith efforts to ensure that the information a...
View in text
Excerpt 2
ere, and that’s what we will be doing in this first chapter. We’ll start with an introduction to Node, how it works, and why it’s popular. We’ll learn the ba...
View in text
Excerpt 3
option to install Node is using Node Version Manager (NVM). NVM allows you to run multiple versions of Node and switch between them easily. You might need to...
View in text
Excerpt 4
objects, and more. First, you need to download the package. You can do that using the npm install command: $ npm install lodash This command will download th...
View in text
Excerpt 5
er modules to import it and depend on it. To use the server.js exported objects in other modules, we use another import statement. In an index.js file, write...
View in text
Excerpt 6
argument (see the explanation of that in the next sidebar). This enables us to use the word-counting one-liner with any file. We can alias it (without the pa...
View in text
Excerpt 7
statements by using absolute paths instead of relative ones. NODE_OPTIONS This is an alternative way to specify the options Node supports instead of passing...
View in text
Excerpt 8
s being imported. If the module name does not start with a . (denoting a relative path) or a / (denoting an absolute path), Node will first check if the modu...
View in text
Loading comments...
Reply to Comment
Edit Comment