ngangai.hashnode.dev🚀 Installing node-canvas on Mac M1 Without TearsThis guide helps you set up node-canvas on Mac M1 by addressing common dependency issues. Ensure you have Homebrew, Node.js, and necessary native libraries installed. Adjust your environment variables if needed, and then install node-canvas. Verify t...Aug 17, 2025·2 min read
ngangai.hashnode.devThe "process" objectThis article covers the use of `process.env` and `process.argv` in Node.js for handling environment variables and command-line arguments, respectively. It explains how to pass and access custom environment variables dynamically, such as setting a dif...Jan 16, 2025·2 min read
ngangai.hashnode.devUnderstanding JavaScript Timers: Key Concepts and ExamplessetTimeout setInterval setTimeout Used to delay the execution by given time. It accepts two arguments first one is a callback function with executable statements, second is time in milliseconds. It executes the callback only once after provided ti...Jan 16, 2025·2 min read
ngangai.hashnode.devEasy Steps to Begin Working with Node.jsNode.js — A wrapper around V8 with built-in modules providing rich features through easy-to-use asynchronous APIs. Why Node — Wrapper around V8 Built-in modules (fs, http, crypto, zip, …) Asynchronous APIs (no threads) Debugger and other utilitie...Jan 16, 2025·3 min read
ngangai.hashnode.devHow to Manage Events in ReactEvent handlers are functions that will be triggered in response to interactions like clicking, hovering, focusing form inputs, and so on. const App = () => { const handleClick = () => { console.log('Clicked') } return <Button onC...Jul 18, 2024·1 min read