Browse Source

npmsearch: remove clutter from preview

DanielFGray 2 years ago
parent
commit
28b091c83a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      npmsearch

+ 1
- 1
npmsearch View File

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

Loading…
Cancel
Save