How to see package history?
Solution 1:
You could do npm view npm
there are some options you can find at https://docs.npmjs.com/cli/view
e.g. npm view [email protected] time
Solution 2:
For those wondering how to view these details online. There is a slightly ugly* way I found to do that. Here's how
- Assuming your package name is
<packageName>
go tohttps://registry.npmjs.org/<packageName>
the JSON here is probably the same thing you get when you runnpm view
- Do a Ctrl+F(or equivalent) to search for
"time":{
or"<your_version_number>"
- You can find the version release date under the "time" key.
For example if you want to find out when version 1.1.25 (couldn't find 1.1.2) of npm was released. You can go to https://registry.npmjs.org/npm
Search for "1.1.25" and iterate till you find a value under the "time" key or search for "time":{
(whichever is easier) and there you have it!
"time":{"modified":"2017-10-13T18:58:10.523Z","created":"2013-07-12T18:32:48.902Z","1.1.25":"2013-07-12T18:32:49.875Z"...
*Ugly because you have to parse the JSON to understand the mess :)
Solution 3:
For some specific versions I have found that time is not present and therefore the package is not listed when running that command. To see a list of all available times for a package run this command: npm view <package> time
. To see all versions and history run npm view <package> versions
.