{"library":"node-bin-darwin-arm64","title":"Node.js Runtime (macOS ARM64 Binary)","description":"Node.js is an open-source, cross-platform JavaScript runtime environment built on Chrome's V8 JavaScript engine. It allows developers to execute JavaScript code outside of a web browser, primarily for server-side applications, command-line tools, and desktop applications. This specific package, `node-bin-darwin-arm64`, provides a pre-compiled binary distribution of Node.js for macOS systems running on ARM64 architecture, currently at version 24.15.0. Node.js follows a semantic versioning scheme, with new major versions released every six months (April and October), introducing breaking changes. It maintains both 'Current' releases for active development and 'LTS' (Long Term Support) releases focused on stability and security, receiving 12 months of active support followed by 18 months of maintenance. Its event-driven, non-blocking I/O model makes it highly efficient for real-time applications and microservices, differentiating it through performance and a vast ecosystem of modules.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-bin-darwin-arm64"],"cli":{"name":"node","version":null}},"imports":["import { createServer } from 'node:http';","import { readFile } from 'node:fs/promises';","const { join } = require('node:path');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createServer } from 'node:http';\n\nconst PORT = process.env.PORT ?? 3000;\n\ncreateServer((req, res) => {\n  res.writeHead(200, { 'Content-Type': 'text/plain' });\n  res.end('Hello Node.js Checklist.day! Current version: ' + process.version);\n}).listen(PORT, () => {\n  console.log(`Node.js server listening on http://localhost:${PORT}`);\n  console.log('Open your browser to this address.');\n  console.log('Press Ctrl+C to stop the server.');\n});\n\n// To run this:\n// 1. Save as `server.ts`.\n// 2. Initialize a package.json if you don't have one: `npm init -y`\n// 3. Add `\"type\": \"module\"` to `package.json` for ESM support.\n// 4. Install TypeScript: `npm install typescript --save-dev`\n// 5. Create a `tsconfig.json` with `npx tsc --init` and ensure `target` is 'es2022' or higher, and `module` is 'nodenext' or 'es2022'.\n// 6. Compile: `npx tsc server.ts`\n// 7. Run: `node server.js`","lang":"typescript","description":"This example demonstrates a basic HTTP server using Node.js's built-in `http` module with ESM syntax. It listens on a configurable port and responds with a plain text message, including the Node.js version.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}