npmgraph / npmgraph

A tool for exploring NPM modules and dependencies
https://npmgraph.js.org
MIT License
502 stars 34 forks source link

Use proper repo URL parser #297

Open fregante opened 3 weeks ago

fregante commented 3 weeks ago

Replace:

https://github.com/npmgraph/npmgraph/blob/397c5cae1cf52a7d64f5a6b5b75c40d1fbba0b18/components/ModulePane/ModulePane.tsx#L203-L227

With: https://github.com/sindresorhus/repo-url-from-package

Edit: That package is too limited, this is what npm uses: https://www.npmjs.com/package/hosted-git-info