notes

Backend Development

NodeJS

NodeJS Concepts

What is NodeJS?

Node.js is a JavaScript runtime environment that allows developers to execute JavaScript code outside of a web browser.

Core modules: fs and path

  • fs interacting with the actual hard drive to read, write, or delete files.
  • path for manipulating string paths safely across different operating systems (Windows uses , while Mac/Linux use /).
// Modern ES Modules (Set "type": "module" in package.json)
import fs from 'node:fs/promises'; // Use the modern Promise-based fs API
import path from 'node:path';

// Traditional CommonJS
const fs = require('node:fs').promises;
const path = require('node:path');
created 14 Oct 2026

Backlinks

Nothing links here yet. Notes link by filename, so this fills in as the corpus grows.

Local graph