REST Service for POPCORN - ILIAS
alex
2025-10-24 df46e7171c2dd42b3084dffb19e705a54d1731ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const iliasLib = require("../lib/libIlias")
const db = require("../lib/db")
const yargs = require("yargs")
 
/////////////////////////////////////////////////////////////////////////
 
const argv = yargs
   .usage("$0 [offset] [limit]", "get users from ILIAS",)
   .strict()
   .parse()
 
 
run(argv)
   .then(console.log)
   .catch(console.error)
   .finally(process.exit)
 
async function run({offset, limit}) {
   offset = offset || 0
   limit = limit || 3
   return await db.getUsers(offset, limit)
}