Node.js module for Moodle Rest Service integration

const { MoodleRestClient } = require ( ' moodle-rest-client ' ) const client = new MoodleRestClient ( ' your-moodle-url.com ' , ' your-moodle-token ' ) const client = new MoodleRestClient ( ' your-moodle-url.com ' , ' your-moodle-token ' , { protocol : ' https ' } ) const client = new MoodleRestClient ( ' your-moodle-url.com ' , ' your-moodle-token ' , { port : 8080 } ) const client = new MoodleRestClient ( ' your-moodle-url.com ' , ' your-moodle-token ' , { subdirectory : ' moodle ' } ) const client = new MoodleRestClient ( ' your-moodle-url.com ' , ' your-moodle-token ' , { protocol : ' https ' , port : 8080 , subdirectory : ' moodle ' } )