Node Tutorials

The "__dirname is not defined" error is usually due to using ESM. Here's how you can fix this error.
Here's what you need to know about Node's built-in uuid functionality.
Here's how you can use bcrypt-js to work with passwords in Node.js.
Here's what you need to know about Node's built-in assert module.
Here's how to modify authorized redirect URIs for logging in with Google OAuth.
Here's how you can delay operation executions in NodeJS.
Convert HTML to Pug in your browser, with syntax highlighting!
Convert Pug to HTML in your browser, with syntax highlighting!
Installing Node.js on Ubuntu with apt-get can be tricky if you want to install a specific version. Here's a better way.
Here's how you can create a simple HTTP proxy in Node.js.
Checking what version of Node.js you're using is easy. You can either run `node --version`, or print `process.version`. Here's what you need to know.
Node.js has a built-in HTTP server class that you can use to respond to HTTP requests. Here's what you need to know.
The ws package lets you start a websocket server in Node.js. You can also integrate ws with frameworks like Express. Here's how.
Node.js buffers have a `toString()` method you can use to convert raw data into various encodings, like hex and base64. Here's what you need to know.
Node.js buffers have a length property that contains the number of bytes in the buffer. Here's what you need to know.
Node.js buffers have a static function `compare()` that lets you check if two buffers are equal. Here's what you need to know.
Now that Node.js has native support for ESM imports, should you use `require()` or `import`? Here's what you need to know.
Node has limited support for ES6 import statements. Here's how you can make JavaScript that uses `import` work in Node.
Node's built-in HTTP library lets you make HTTP requests, but is hard to work with. Here's what you need to know.
Google Cloud has a Node.js API that lets you upload Google Cloud Functions, launch new VMs, and compile code on Google Cloud. Here's how you can upload files to Google Cloud Storage.
Node.js has a built-in Buffer type that lets you store arbitrary binary data. Here's what you need to know.
AWS is powerful, but their UI leaves a lot to be desired. Here's how you can skip the AWS console and deploy Lambda functions from a Node.js script.
The `util.promisify()` function converts functions that use Node.js callbacks into functions that return promises. Here's what you need to know.
An introduction to using Chai with Mocha using expect and should
An introduction to using Chai with Mocha using expect and should
A brief overview of writing tests with Mocha
Learn how to upload files to Amazon S3 using the AWS Node.js SDK
WebSockets enable two-way communication between browser and server, including pushing updates to the browser. Here's how you can use websockets in Node.js