We recommend loading all required modules at the top of the script that uses them, and to give the returned objects the same name as their respective modules, for example:
const axios = require('axios'); //loads the axios library
Once loaded these variables are then treated as namespaces for the modules. See the relevant documentation below for examples.
Only the libraries supplied by GOSS Interactive can be used in this way. It is not possible to add additional libraries to the API Server. The upgrade and patch process involves reinstalling the API Server so only the default libraries supplied with iCM will be present after such work. If there's a library you would like to see included, let us know!