Search Results

Showing results for "javascript"

Latest Articles

Cover Image for How to fix Error: listen EADDRINUSE while using NodeJS?
javascriptnode.js

How to fix Error: listen EADDRINUSE while using NodeJS?

Published on September 2, 2023

# How to Fix Error: listen EADDRINUSE while using NodeJS? 😱🔌🚫 So, you're trying to run a server with port 80 in NodeJS, but you're getting the dreaded Error: listen EADDRINUSE. This error occurs when the port you're trying to use is already in use by a

Cover Image for ReferenceError: fetch is not defined
javascriptnode.js

ReferenceError: fetch is not defined

Published on September 2, 2023

🎉📝🚀 Welcome to my tech blog! Today, we are going to tackle a common issue that many developers encounter: the dreaded `ReferenceError: fetch is not defined` error in node.js. 😱 So, you've hit a roadblock while compiling your code in node.js and you're

Cover Image for How to auto-reload files in Node.js?
javascriptnode.js

How to auto-reload files in Node.js?

Published on September 2, 2023

🎉 **Auto-reload Files in Node.js: Never Restart Your Server Again!** 🚀 Are you tired of manually restarting your Node.js server every time you make a file change? We feel your pain! 😩 But don't worry, we've got you covered with an easy solution to auto

Cover Image for How can I write a test which expects an "Error" to be thrown in Jasmine?
javascriptnode.js

How can I write a test which expects an "Error" to be thrown in Jasmine?

Published on September 2, 2023

# How to Write a Jasmine Test that Expects an 'Error' to Be Thrown 😱 Writing tests is an essential part of the development process, ensuring that our code functions as expected. But what happens when we want to test if an error is thrown? 🤔 In this post

Cover Image for Difference between "process.stdout.write" and "console.log" in node.js?
javascriptnode.js

Difference between "process.stdout.write" and "console.log" in node.js?

Published on September 2, 2023

# Understanding the Difference between "process.stdout.write" and "console.log" in Node.js Have you ever used both `process.stdout.write` and `console.log` in your Node.js code and wondered why they produce different results? If you've encountered this is

Cover Image for SyntaxError: Cannot use import statement outside a module
javascriptnode.js

SyntaxError: Cannot use import statement outside a module

Published on September 2, 2023

📝 **Blog Post: How to Fix the SyntaxError: Cannot use import statement outside a module** Are you encountering the pesky `SyntaxError: Cannot use import statement outside a module` error in your Node.js project? 😫 Don't worry, you're not alone! This err

Cover Image for Fastest way to copy a file in Node.js
javascriptnode.js

Fastest way to copy a file in Node.js

Published on September 2, 2023

# Fastest way to copy a file in Node.js 🚀 If you're working on a Node.js project that involves frequent file system operations like copying, reading, and writing files, you might be wondering which method is the fastest. In this article, we'll explore di

Cover Image for Invalidating JSON Web Tokens
javascriptnode.js

Invalidating JSON Web Tokens

Published on September 2, 2023

🔒💬 Invalidating JSON Web Tokens: A Guide to Token-Based Session Approach Are you tired of dealing with cookie-based session approaches for your node.js projects and looking for a more secure and efficient solution? Look no further! In this blog post, we

Cover Image for How to print a stack trace in Node.js?
javascriptnode.jsstack-trace

How to print a stack trace in Node.js?

Published on September 2, 2023

# How to Print a Stack Trace in Node.js? 📜🔍 So, you've found yourself in a situation where you need to print a stack trace in Node.js. Don't worry, we've got you covered! 😉 In this article, we'll explore the common issues faced when trying to print a s

Blog | Matheus Mello