/
usr
/
local
/
lib
/
node_modules
/
npm
/
lib
/
utils
/
/usr/local/lib/node_modules/npm/lib/utils
mkdir
upload
Name
Size
Mode
Actions
audit-error.js
1078
0644
edit
dl
rm
auth.js
3288
0644
edit
dl
rm
cmd-list.js
2953
0644
edit
dl
rm
completion.fish
1596
0644
edit
dl
rm
completion.sh
1898
0755
edit
dl
rm
did-you-mean.js
1143
0644
edit
dl
rm
display.js
16760
0644
edit
dl
rm
error-message.js
15775
0644
edit
dl
rm
explain-dep.js
3648
0644
edit
dl
rm
explain-eresolve.js
2582
0644
edit
dl
rm
format-bytes.js
624
0644
edit
dl
rm
format-search-stream.js
4913
0644
edit
dl
rm
format.js
2140
0644
edit
dl
rm
get-identity.js
797
0644
edit
dl
rm
get-workspaces.js
1748
0644
edit
dl
rm
installed-deep.js
1129
0644
edit
dl
rm
installed-shallow.js
583
0644
edit
dl
rm
is-windows.js
177
0644
edit
dl
rm
log-file.js
7860
0644
edit
dl
rm
npm-usage.js
2072
0644
edit
dl
rm
oidc.js
7368
0644
edit
dl
rm
open-url.js
2553
0644
edit
dl
rm
output-error.js
788
0644
edit
dl
rm
ping.js
265
0644
edit
dl
rm
queryable.js
9611
0644
edit
dl
rm
read-user-info.js
2095
0644
edit
dl
rm
reify-finish.js
753
0644
edit
dl
rm
reify-output.js
6475
0644
edit
dl
rm
sbom-cyclonedx.js
5656
0644
edit
dl
rm
sbom-spdx.js
5288
0644
edit
dl
rm
tar.js
3511
0644
edit
dl
rm
timers.js
2120
0644
edit
dl
rm
update-workspaces.js
997
0644
edit
dl
rm
validate-lockfile.js
1023
0644
edit
dl
rm
verify-signatures.js
12499
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/npm/lib/utils/completion.sh
(1898B)
#!/bin/bash ###-begin-npm-completion-### # # npm command completion script # # Installation: npm completion >> ~/.bashrc (or ~/.zshrc) # Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm # if type complete &>/dev/null; then _npm_completion () { local words cword if type _get_comp_words_by_ref &>/dev/null; then _get_comp_words_by_ref -n = -n @ -n : -w words -i cword else cword="$COMP_CWORD" words=("${COMP_WORDS[@]}") fi local si="$IFS" if ! IFS=$'\n' COMPREPLY=($(COMP_CWORD="$cword" \ COMP_LINE="$COMP_LINE" \ COMP_POINT="$COMP_POINT" \ npm completion -- "${words[@]}" \ 2>/dev/null)); then local ret=$? IFS="$si" return $ret fi IFS="$si" if type __ltrim_colon_completions &>/dev/null; then __ltrim_colon_completions "${words[cword]}" fi } complete -o default -F _npm_completion npm elif type compdef &>/dev/null; then _npm_completion() { local si=$IFS compadd -- $(COMP_CWORD=$((CURRENT-1)) \ COMP_LINE=$BUFFER \ COMP_POINT=0 \ npm completion -- "${words[@]}" \ 2>/dev/null) IFS=$si } compdef _npm_completion npm elif type compctl &>/dev/null; then _npm_completion () { local cword line point words si read -Ac words read -cn cword let cword-=1 read -l line read -ln point si="$IFS" if ! IFS=$'\n' reply=($(COMP_CWORD="$cword" \ COMP_LINE="$line" \ COMP_POINT="$point" \ npm completion -- "${words[@]}" \ 2>/dev/null)); then local ret=$? IFS="$si" return $ret fi IFS="$si" } compctl -K _npm_completion npm fi ###-end-npm-completion-###
Save
cmd:
run