Node.js script optimization
Help me review and optimize [Node.js script or project]. Known material: [code excerpt and runtime]; the focus is [performance or maintainability]. List bottlenecks, async patterns, error handling, dependencies, and security gaps, then give key rewritten snippets with the reasoning for each change. Do not assume code or benchmark numbers you were not given.
Open this template in the optimizer →
Placeholders to fill in
- Node.js script or project
- code excerpt and runtime
- performance or maintainability
Placeholders stand for your own facts. Never invent figures, sources or credentials the model was not given.
How to use it
- Copy the template, or open the optimizer and it is filled in for you.
- Replace every placeholder in brackets with your own material.
- Add constraints such as length, audience, tone, and what must not change.
- Generate, then refine in three directions and copy the result.
Adapted from LobeHub agent “Node.js 优化师” by chrisuhg (MIT)
More coding goals
Browse other tasks
Canonical version: https://www.prompt.dx3906.net/zh/templates/coding/purpose-node-js-devoloper