Open
Description
Sanity checks
- My issue relates to a specific CLI completion spec (e.g.
git checkout
is missing options ingit
completion spec). If your issue is more general, please create your issue here: withfig/fig - I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
- I would like to work on this.
What CLI tool does this relate to?
npm
Which statement makes the most sense?
There is a bug with this completion spec
Issue Details
Currently npm autocomplete uses api.npms.io
to search package
Lines 32 to 34 in 7922234
and registry.npmjs.org
to search package version
Line 48 in 7922234
Both api only support public npm registry.
My suggestion is to use npm --json search
command for packages and npm --json info
for versions.