Open claneo opened 5 months ago
git checkout
git
npm
There is a bug with this completion spec
Currently npm autocomplete uses api.npms.io to search package
api.npms.io
https://github.com/withfig/autocomplete/blob/7922234c72777fc1a5be89699ad69be6720fa838/src/npm.ts#L32-L34
and registry.npmjs.org to search package version
registry.npmjs.org
https://github.com/withfig/autocomplete/blob/7922234c72777fc1a5be89699ad69be6720fa838/src/npm.ts#L48
Both api only support public npm registry.
My suggestion is to use npm --json search command for packages and npm --json info for versions.
npm --json search
npm --json info
Sanity checks
git checkout
is missing options ingit
completion spec). If your issue is more general, please create your issue here: withfig/figWhat 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 packagehttps://github.com/withfig/autocomplete/blob/7922234c72777fc1a5be89699ad69be6720fa838/src/npm.ts#L32-L34
and
registry.npmjs.org
to search package versionhttps://github.com/withfig/autocomplete/blob/7922234c72777fc1a5be89699ad69be6720fa838/src/npm.ts#L48
Both api only support public npm registry.
My suggestion is to use
npm --json search
command for packages andnpm --json info
for versions.