nodejs
Installation
SKILL.md
Node.js
Node.js is a cross-platform JavaScript runtime environment. Node.js 22 (LTS 2025) brings native TypeScript support (experimental), a built-in Test Runner, and a native WebSocket client.
When to Use
- Real-time Apps: Chat, Gaming, Collaboration (WebSockets).
- API Servers: High concurrency with non-blocking I/O.
- Tooling: The foundation of modern frontend toolchains (Vite, Next.js).
Quick Start (Native Features)
// Native Test Runner (No Jest needed)
import { test, assert } from "node:test";
test("synchronous passing test", (t) => {
assert.strictEqual(1, 1);
});