Skip to content

Instantly share code, notes, and snippets.

View bearzk's full-sized avatar

Kai Zhang bearzk

View GitHub Profile
@bearzk
bearzk / compare-lockfiles.js
Created January 19, 2026 10:18
compare 2 npm lock files
#!/usr/bin/env tsx
/**
* Compare two package-lock.json files and show differences
*
* Usage:
* npm run compare-lockfiles <file1> <file2> [--filter=pattern]
*
* Examples:
* npm run compare-lockfiles package-lock.json main-package-lock.json
* npm run compare-lockfiles package-lock.json main-package-lock.json --filter=sharp