dominictarr / npmd-cache

MIT License
2 stars 1 forks source link

support ssh and github urls #4

Open duralog opened 10 years ago

duralog commented 10 years ago

so, in npm, there is the option to stick in the dependencies, as simple as [username]/[repo]

and then as complex as git+ssh://github.com:duralog/node-leveldown#0.11-wip

(lolz so, my objective was to update leveldown to work with node-0.11 and the latest nan .. got the first part, but didn't realize npmd doesn't understand github repo urls well)...

I think in this case, it should just url.parse then download the appropriate package.json from raw.github.com - I'd make a pull request, but after looking at the code, I'm not 100% sure how you'd want to do it.

cheers!

dominictarr commented 10 years ago

hmm, sorry I'm not 100% clear about which commands do not work as expected? username/repo should work. git urls are handled by this module: https://github.com/dominictarr/npm-github-resolve-url

can you post the command you tried to use and the output you got?