File: fetch-impls.sh

package info (click to toggle)
node-lru-cache 10.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: javascript: 546; sh: 90; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 366 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

# get the latest patch in each lru-cache 7.x and up,
# plus mnemonist, hashlru, and lru-fast

nvs=($(
  npm view 'lru-cache@>=7' name | awk -F. '{print $1 "." $2}' | sort -r -V | uniq
)
'mnemonist@0.39'
'hashlru@2'
'lru-fast@0.2')

echo "lru-cache_CURRENT" > impls.txt
for dep in "${nvs[@]}"; do
  name=${dep/@/_}
  echo $name >> impls.txt
done