Verify npm package provenance and Sigstore attestations with zero dependencies.
is-verified-pkg is a sub-1KB utility designed for security-conscious developers. It identifies if a package version was published via a Trusted Publisher (OIDC) rather than a manual upload.
fetch.npm install is-verified-pkg
import { isVerified } from 'is-verified-pkg';
const ok = await isVerified('esbuild');
if (ok) console.log('Package is verified');