This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Node.js Documentation

A comprehensive guide to understanding and working with Node.js.

Node.js Documentation

Welcome to the Node.js documentation. This guide will help you understand and work with Node.js.

Table of Contents

Basic Concepts

ConceptDescription
Node.jsJavaScript runtime built on Chrome’s V8 JavaScript engine
Event-drivenUses non-blocking I/O model that makes it lightweight and efficient
NPMNode Package Manager for installing and managing dependencies
package.jsonConfiguration file that contains metadata about the project
ModulesReusable blocks of code that can be imported/exported

Core Modules

ModuleDescription
fsFile system operations
httpHTTP server and client functionality
pathUtilities for working with file and directory paths
osOperating system-related utility methods
eventsFor handling and emitting events
utilUtility functions
streamFor working with streaming data
cryptoCryptographic functionality

NPM Commands

CommandDescription
npm initInitialize a new Node.js project
npm install <package>Install a package
npm install -g <package>Install a package globally
npm install --save-dev <package>Install as a development dependency
npm uninstall <package>Uninstall a package
npm updateUpdate packages
npm listList installed packages
npm run <script>Run a script defined in package.json

File System Operations

Package Manager

1 - NestJS

NestJS is a framework for building efficient, scalable Node.js server-side applications. It uses modern JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).