Package Diff

Package Diff displays a diff between two versions of the same npm package.

Why not simply link to the GitHub repository of a package using two different version hashes? Well, the version of an npm package checked into source control isn't always the same as the version used inside of an npm package. This is commonly done for well-intending reasons, such as checking in raw source code but packaging a minified version. This is sometimes done for nefarious reasons as well, such as when a malicious package is published.

The URL of the package diff will remain permanently accessible. You can generate such a diff by using the following URL structure:

GET /{package_name}/{min_version}/{max_version}           <- HTML
GET /{package_name}/{min_version}/{max_version}.diff      <- DIFF

Here are some examples:

Package Name:
Min Version:
Max Version:

For more information check out the press release: Introducing Package Diff.

Brought to you by