Safeguard
Topic

Developer Tools

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

2959 articles

Developer Tools

OAuth 2 secure defaults: PKCE, scopes and refresh token rotation

The OAuth 2 settings worth getting right: authorization code with PKCE, no implicit flow, minimal scopes, state, and rotating refresh tokens.

Oct 18, 20263 min read
Developer Tools

NuGet lock files and locked mode: repeatable restores in CI

Enable packages.lock.json with RestorePackagesWithLockFile, then use locked mode in CI so a restore either matches the lock or fails loudly.

Oct 18, 20263 min read
Developer Tools

npmrc basics: scoped registries and tokens that stay on one host

Route a package scope to a private registry with one npmrc line and scope the auth token to that host so npm never sends it to the wrong place.

Oct 18, 20263 min read
Developer Tools

npm workspaces: install and run commands for one package

How npm workspaces link packages, and the exact commands to add a dependency, run a script or test one package or all of them in a monorepo.

Oct 18, 20263 min read
Developer Tools

npm workspaces explained: one repo, many packages, one install

How npm workspaces link local packages, where the lockfile lives, and how to run commands in one, several or all workspaces without surprises.

Oct 18, 20263 min read
Developer Tools

npm peer dependencies explained: what changed in npm 7 and why

Peer dependencies state which host package a plugin works with. Since npm 7 they install by default. Learn optional peers and how to write a sane range.

Oct 18, 20263 min read
Developer Tools

npm overrides: how to force a version of a transitive dependency

How npm overrides work in package.json: root only scope, nesting, version keys, the dollar reference and the error when you override a direct dependency.

Oct 18, 20263 min read
Developer Tools

npm outdated explained: Current, Wanted and Latest columns

What the Current, Wanted and Latest columns in npm outdated mean, why Wanted can differ from Latest, and what the red and yellow colours tell you.

Oct 18, 20263 min read
Developer Tools

Should you set npm ignore-scripts on your developer machine?

Setting ignore-scripts to true stops install-time scripts from running. It helps on a laptop, breaks some packages and does not cover code that runs later.

Oct 18, 20263 min read
Developer Tools

package.json engines is advisory by default: how to enforce it

The engines field in package.json only warns unless engine-strict is set. Learn what it does, where it matters, and how to pin your runtime in CI.

Oct 18, 20263 min read
Developer Tools

npm says a package is deprecated. What should you do?

A deprecation notice is a maintainer's warning, not a ban. Read the message, decide if you are affected, and plan a replacement before it becomes a problem.

Oct 18, 20263 min read
Developer Tools

npm dedupe and find-dupes: cleaning up duplicate packages

Why the same package appears at several versions in node_modules, what npm dedupe changes, and how find-dupes previews it before you touch anything.

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.