Developer Tools
Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.
2876 articles
npm audit failed on my first PR: what should I do?
A failing npm audit step is not always your fault. Read the report, check the dependency path, try the safe fix, and know when to ask for an exception.
How should a maintainer tell downstream users which versions are affected?
Maintainers help downstream teams respond fast by publishing a structured advisory with clear version ranges, a fixed version and a changelog note.
What is the secure timestamp in Mac code signing and how do you check it?
A secure timestamp in a Mac code signature is required for notarization. See when Xcode adds it, when your own script must, and how to check a binary.
Why was my Mac app rejected by notarization? Common causes and fixes
Mac notarization usually fails for a short list of reasons: wrong certificate, no hardened runtime, no secure timestamp, debug entitlement or an old SDK.
Which Node unhandled-rejections mode should production use?
Node.js has five unhandled rejection modes. What throw, strict, warn, warn-with-error-code and none each do, and why silencing them is a real risk.
Node Sass is deprecated: what should you use instead?
The Sass team declared Node Sass and LibSass deprecated in 2020. Dart Sass, the sass package on npm, is the supported option, and the swap is small.
What is node_modules/.package-lock.json, and can you trust it?
node_modules/.package-lock.json is npm's hidden lockfile, a cache of the installed tree. When npm uses or ignores it, and why it is not a security control.
Can Node's --env-file flag replace the dotenv package?
Node.js can load a .env file itself with --env-file. See the documented behavior, precedence rules and what it means for your dependency list.
Should a Node.js Dockerfile use npm start or node as CMD?
Use node directly as CMD in exec form. npm start adds a process that can swallow SIGTERM, and PID 1 handling needs care. What to set and how to test it.
Which Node.js Docker tag should production use: lts, major or exact?
Pin the major line and variant, such as 24-slim, and rebuild often. Floating lts moves under you, and exact versions need a rebuild routine. How to choose.
What do Node.js deprecation flags do: pending, trace and throw?
Node.js has three deprecation flags with different jobs. Learn when to use pending, trace and throw in tests before moving to a new Node major.
Why does a forgotten await matter in Node, and how do you lint it?
A promise nobody handles can skip a security check or crash the process. How Node treats unhandled rejections and how no-floating-promises catches them.
Self-healing security runs on Safeguard.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.