howfat icon indicating copy to clipboard operation
howfat copied to clipboard

Do not hardcode default registry.npmjs.org

Open ghost opened this issue 3 years ago • 2 comments

When running this tool against packages hosted on private registries and mirrors, it will not work

https://github.com/megahertz/howfat/blob/00269eac85c184e2e6efffdb45c8370b34332958/src/package/fetchers/NpmFetcher.js#L27

The best way is to inherit the registry from npm configuration or allow to override it through CLI flag. That way, we will gather statistics for private packages as well.

ghost avatar Feb 25 '21 14:02 ghost

Thank you, will try to add the feature later

megahertz avatar Feb 25 '21 14:02 megahertz

Just wondering if this has been updated? Just came across this issue.

zeroarst avatar Mar 06 '22 06:03 zeroarst

Implemented in v0.3.0

megahertz avatar Nov 30 '22 12:11 megahertz