File: genlist.ts

package info (click to toggle)
node-corepack 0.24.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 262,916 kB
  • sloc: javascript: 94; makefile: 18; sh: 12
file content (11 lines) | stat: -rw-r--r-- 286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import {readFileSync} from 'fs';
import semver         from 'semver';

const lines = readFileSync(0, `utf8`).split(/\n/).filter(line => line);

lines.sort((a, b) => {
  return semver.compare(a, b);
});

for (const version of lines)
  console.log(`"${version}": "${process.argv[2]}",`);