Safeguard
Tag

npm

Safeguard articles tagged "npm" — guides, analysis, and best practices for software supply chain and application security.

195 articles

Open Source

usehooks-ts: A Typed React Hooks Library Reviewed

usehooks-ts packs 30+ typed React hooks into a tree-shakable package with a single dependency. Here is what it does well, where it is aging, and how to vet it before adoption.

Apr 17, 20267 min read
DevSecOps

Securing actions/setup-node in Your CI Pipeline

The actions/setup-node step looks harmless, but pinning, caching, and registry auth choices decide whether it becomes a supply chain foothold. Here is how to harden it.

Apr 17, 20266 min read
Open Source

React Form Input Packages: react-hook-form, react-phone-input-2, country-state-city

The react-phone-input-2 npm package has half a million weekly downloads and no releases since 2021. A practical review of three form-layer dependencies and what each one really costs.

Apr 17, 20266 min read
Open Source

immer npm: A Security Review and Safe Usage Guide

The immer npm package makes immutable state updates painless, but its older versions carried prototype pollution flaws. Here is its security history and how to depend on it safely.

Apr 16, 20266 min read
Supply Chain Security

npm Supply Chain Attacks Q1 2025: Dependency Confusion, Typosquatting, and Maintainer Takeovers

The first quarter of 2025 saw a sharp increase in npm supply chain attacks. We catalog the major incidents and analyze the evolving techniques.

Apr 11, 20266 min read
Open Source

Vetting React Native npm Packages: pager-view, paper, video, config

Before you add react-native-pager-view npm installs to a mobile app, run the same vetting you would for backend code. Here is a practical checklist using four popular packages as case studies.

Apr 10, 20266 min read
Open Source

react-select-async-paginate: A Security Guide

react-select-async-paginate is a thin wrapper over react-select that loads dropdown options page by page. Here is how to use it without inheriting supply chain or data-handling risk.

Apr 9, 20265 min read
Application Security

Reachability Analysis for JavaScript and TypeScript in 2026

JS reachability with npm's nested trees, dynamic require, ESM/CJS interop, and bundler dead code elimination. What modern tools resolve and what they punt.

Apr 8, 20265 min read
Open Source

FileSaver.js (file-saver): Package Review and Download Security

The file saver npm package still powers client-side downloads in millions of builds, but it has not shipped a release since 2020. Here is what that means for your dependency tree.

Apr 8, 20267 min read
Open Source

zxcvbn npm: Is the Password Strength Library Still Safe to Use?

The zxcvbn npm package still works well for password strength estimation, but the original Dropbox library is effectively unmaintained. Here is what that means and what to use instead.

Apr 4, 20265 min read
Supply Chain

What package-lock.json Does and Why You Should Commit It

The main package-lock.json use is pinning your entire npm dependency tree to exact, integrity-checked versions so every install is reproducible. Here is what is inside it and why deleting it is a bad habit.

Apr 4, 20266 min read
Open Source

class-validator: Security, Health, and Safe Usage in Production

class-validator powers input validation in most NestJS apps, but its defaults burned teams once before. Here is its real security history and how to configure it safely.

Apr 4, 20266 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.

npm (Page 10) — Safeguard Blog