23.03.2020 Views

node-js

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Installing with Node Version Manager under Fish Shell with Oh My Fish! 152

Install Node.js from source on Centos, RHEL and Fedora 153

Installing Node.js with n 153

Chapter 43: Interacting with Console 155

Syntax 155

Examples 155

Logging 155

Console Module 155

console.log 155

console.error 155

console.time, console.timeEnd 155

Process Module 156

Formatting 156

General 156

Font Colors 156

Background Colors 157

Chapter 44: Keep a node application constantly running 158

Examples 158

Use PM2 as a process manager 158

Useful commands for monitoring the process 158

Running and stopping a Forever daemon 159

Continuous running with nohup 160

Process Mangement with Forever 160

Chapter 45: Koa Framework v2 161

Examples 161

Hello World example 161

Handling errors using middleware 161

Chapter 46: Lodash 162

Introduction 162

Examples 162

Filter a collection 162

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!