Browse Source

npmsearch: remove clutter from preview

pull/7/head
DanielFGray 6 years ago
parent
commit
28b091c83a
  1. 2
      npmsearch

2
npmsearch

@ -54,7 +54,7 @@ printf "formatting...\r" @@ -54,7 +54,7 @@ printf "formatting...\r"
search=$(jq -r '.[] | "\(.name)|\(.version)|\(.description)"' <<< "$search" | column -t -s'|')
if has jq; then
preview='npm view --json {1} | jq -C "."'
preview='npm view --json {1} | jq -C "del(.users, .time, .versions)"'
else
preview='npm view {1}'
fi

Loading…
Cancel
Save