Safeguard
Topic

Developer Tools

In-depth guides and analysis on developer tools from the Safeguard engineering team.

2959 articles

Developer Tools

How do I set up NuGet package source mapping step by step?

Step by step NuGet package source mapping: what it does, the nuget.config pattern, precedence rules, and the global packages folder trap to avoid.

Oct 18, 20263 min read
Developer Tools

NuGet deprecated vs unlisted vs vulnerable: what is the difference?

Deprecated, unlisted and vulnerable are three different NuGet states. Learn what each means, how to find them in your solution, and what to do next.

Oct 18, 20264 min read
Developer Tools

Does NuGet audit work on old packages.config projects?

Yes, since NuGet 6.10, but with limits: no audit mode setting and fewer MSBuild controls. A version table and what to do if you cannot migrate yet.

Oct 18, 20263 min read
Developer Tools

npm-shrinkwrap.json vs package-lock.json: which one do you publish?

package-lock.json stays in your repo, while npm-shrinkwrap.json can ship in the package. See when each fits and why libraries should avoid shrinkwrap.

Oct 18, 20263 min read
Developer Tools

npm publishing after Shai-Hulud: what GitHub planned, and a checklist

GitHub said it would limit npm publishing to local 2FA, short-lived granular tokens or trusted publishing. What that means and how to prepare packages.

Oct 18, 20263 min read
Developer Tools

How do you set the license field in package.json?

Set license to an SPDX identifier such as MIT, an expression like (ISC OR GPL-3.0), or SEE LICENSE IN a file. UNLICENSED means no rights are granted.

Oct 18, 20263 min read
Developer Tools

Check what goes in your npm package before you publish

Use the files field, npmignore rules and a dry run to see exactly which files ship in your npm tarball, so secrets and test data never reach the registry.

Oct 18, 20263 min read
Developer Tools

How do npm overrides, aliases and optional dependencies affect scans?

Overrides replace versions in the tree, aliases rename packages and optional packages may not install. Each can make a scan disagree with reality.

Oct 18, 20263 min read
Developer Tools

npm lockfile versions 1, 2 and 3: what must a scanner parse?

npm lockfiles come in three formats with different sections. Check that your scanner reads all of them, including old files that still sit in repositories.

Oct 18, 20263 min read
Developer Tools

npm integrity checksum error: what it means and what to do

An npm integrity error means the download does not match the hash in your lockfile. Here are the usual causes, how to investigate, and when to worry.

Oct 18, 20263 min read
Developer Tools

npm install or npm ci: which is safer for builds?

npm ci installs exactly what the lockfile says and fails on mismatch, so it is the safer choice for CI. See what it does and does not protect against.

Oct 18, 20263 min read
Developer Tools

Should CI run npm with ignore-scripts? What it stops and what breaks

ignore-scripts stops npm running package scripts such as install hooks in CI installs. It cuts one attack path but breaks packages that need a build step.

Oct 18, 20263 min read

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.