should use minimatch, and the find() function should take a glob.
2 years without any news. @isaacs is it implemented/abandoned/patch welcomed?
Completion seems to be implemented for install at least. @isaacs What find() function are you referring to?
npm cache add
So! It would be nice to have working completion for all of those things, but in the intervening time, using glob has become less of a pressing concern next to figuring out how to deal with effectively completing when there are literally hundreds of thousands of alternatives to choose from. I've added patch-welcome to this because getting the basic completion up and running to npm publish would be useful for the small number of people who publish packages other than the current one. That said, this isn't something the CLI team is going to have to have the resources to address itself. Thanks for filing away this note, @isaacs!