Node.js, NPM - How can I see docs for old version of package

915 views Asked by At

For example, right now there is "apn" module v2.1.3 on npmjs: https://www.npmjs.com/package/apn

But there is issue. And I'm using 1.7.8.

I know that I can go to node_modules/apn/ and read README.md. But I wonder if there is way to see docs for 1.7.8 on npmjs.com?

I tried https://www.npmjs.com/package/[email protected], it doesn't work, but it would be good feature.

1

There are 1 answers

5
rsp On

Your best option would be to see the docs on GitHub.

A link for this specific example:

But it is possible (though unlikely) that some module may not be available on GitHub (or not be tagged properly). In that case you'd need to get the metadata from:

Download the tarball:

and extract it to get the docs.