Anurag Pandey

Anurag Pandey

Anurag Pandey writes Node.js and TypeScript guides focused on setup, files, JSON, npm, and debugging. He also covers React and TypeScript concepts.

How to Ignore node_modules in Git

How to Ignore node_modules in Git

Keeping node_modules out of Git starts with adding its directory rule to the repository ignore file. A repository ignore file stores exclusions as plain text, one entry per line. I’ll show how to add the rule and remove node_modules files…

UUID Generator in Node.js: 3 Methods

UUID Generator in Node.js: 3 Methods

Before generating an identifier in Node.js, decide what format the API or storage expects. The built-in crypto module generates a random version 4 UUID, a 128-bit identifier written as hexadecimal text with hyphens. This article explains how to generate a…

How to Fix TSC Not Found in TypeScript

How to Fix TSC Not Found in TypeScript

Seeing “tsc: command not found” leaves you looking for a way to run the TypeScript compiler. The TypeScript package provides tsc, which checks TypeScript source files and emits JavaScript. I’ll show how to run a project’s compiler with npx and…

Creating Files in Node.js: 3 Easy Methods

Creating Files in Node.js: 3 Easy Methods

Creating files is a fundamental task in Node.js development, allowing developers to generate new files dynamically for various purposes such as storing data, logging information, or serving as configuration files. The built-in fs module in Node.js provides functions for file…