Sunday 23 February 2020

Get commit hash of a node package

Hey there,Is it possible to find the git commit that an npm package being used in your project is based upon ? What would be the smartest way of doing that ?Imagine for example that my project depends on webpack v5.0.0-beta.5. On github that version is available here, commit hash is 85145cebf3ed50014b36e76047681bbb066bbe1f. Some research seem to indicate that no versioning info is kept at all.Is this possible ?

Submitted February 23, 2020 at 11:02AM by Alistesios

No comments:

Post a Comment