moodle-node

1.0.11 • Public • Published

moodle-node

Manage Moodle from NodeJS

Installation

npm install moodle-node

Usage

const moodle = require('moodle-node');

const user = await moodle.user.createUser({
  username: 'joeblow',
  password: 'Pass1234!',
  email: 'joeblow@nowhere.com',
  firstname: 'Joe',
  lastname: 'Blow',
});
console.log(user);

Output

The output is a JSON object or array based on the function called:

[ 
  { 
    "id": 7, 
    "username": "joeblow" 
  } 
]

Contact Information

If you ever need a hand or have any questions, feel free to reach out.

Fred Lackey
https://fredlackey.com
fred.lackey@gmail.com

Package Sidebar

Install

npm i moodle-node

Weekly Downloads

4

Version

1.0.11

License

Apache-2.0

Unpacked Size

73.3 kB

Total Files

68

Last publish

Collaborators

  • fredlackey