# Node JS

> JavaScript runtime built on Chrome's V8 engine Use when this capability is needed.

- Skill: `tomevault-io/node-js` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/node-js`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/node-js/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/node-js

---


# Node.js Skill

## Best Practices
1.  **Async/Await**: Use `async/await` over Callbacks and raw Promises.
2.  **Error Handling**: Always handle Promise rejections (`.catch()` or `try/catch`). Unhandled rejections crash the process.
3.  **Streams**: Use Streams/Pipelines for large file processing to save memory.
4.  **Security**: Use `helmet` for headers. Validate all inputs.

## Common Pitfalls
*   **Blocking the Event Loop**: CPU-intensive tasks (e.g., image resizing) on the main thread. Use Worker Threads or queues.
*   **Sync APIs**: Using `fs.readFileSync` in HTTP handlers. Never do this.

## References
*   [Node.js Docs](https://nodejs.org/docs/latest/api/)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/sami) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

