Compare package contents between versions.
Section: Package maintenance
Diff a package version
bash
bash
npm diff <package>@1.0.0 <package>@2.0.0Explanation
Compare package contents between versions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Package maintenance