360 Secure SkillHub
360 安全技能中心

Node

提供 Node.js 事件循环、模块系统、npm 工作流、流、调试、性能与生产就绪清单等主题的命令式快速参考;按子命令输出文本说明,供排查运行时问题或优化服务时查阅。

bytesagain
bytesagain
热度 16.02
最近更新 2026-03-21 23:26:50
分类:知识依赖:代码执行应用场景:概念解释 / 教学辅导 / 调试排错 / DevOps ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add node
Metadata
name
node
version
1.0.0
description
Node.js runtime reference — event loop, modules, npm workflows, streams, cluster, debugging. Use when managing Node.js projects, troubleshooting runtime issues, or optimizing server performance.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["node","nodejs","npm","javascript","runtime","event-loop","streams","devtools"]
category
devtools

Node — Node.js Runtime Reference

Quick-reference skill for Node.js runtime internals, npm workflows, and server-side JavaScript.

When to Use

  • Understanding the Node.js event loop and async model
  • Managing npm packages and resolving dependency issues
  • Working with streams, buffers, and file system APIs
  • Debugging Node.js applications and memory leaks
  • Scaling Node.js with cluster and worker threads

Commands

intro

scripts/script.sh intro

Overview of Node.js — architecture, V8, libuv, use cases.

eventloop

scripts/script.sh eventloop

Event loop phases — timers, I/O, check, close, microtasks, nextTick.

modules

scripts/script.sh modules

Module systems — CommonJS vs ESM, resolution algorithm, package.json fields.

npm

scripts/script.sh npm

npm workflows — install, audit, scripts, lockfile, publishing, workspaces.

streams

scripts/script.sh streams

Streams API — readable, writable, transform, pipeline, backpressure.

debugging

scripts/script.sh debugging

Debugging — inspect, Chrome DevTools, heap snapshots, CPU profiling.

performance

scripts/script.sh performance

Performance — cluster, worker threads, memory management, benchmarking.

checklist

scripts/script.sh checklist

Node.js production readiness checklist.

help

scripts/script.sh help

version

scripts/script.sh version

Configuration

Variable Description
NODE_DIR Data directory (default: ~/.node/)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com