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
fsinteracting with the actual hard drive to read, write, or delete files.pathfor 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');Backlinks
Nothing links here yet. Notes link by filename, so this fills in as the corpus grows.