https://github.com/fredlackey/moodle-node
Manage Moodle from NodeJS
https://github.com/fredlackey/moodle-node
Last synced: about 1 month ago
JSON representation
Manage Moodle from NodeJS
- Host: GitHub
- URL: https://github.com/fredlackey/moodle-node
- Owner: FredLackey
- License: apache-2.0
- Created: 2024-10-15T12:41:31.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T18:39:00.000Z (2 months ago)
- Last Synced: 2025-03-17T19:40:14.382Z (2 months ago)
- Language: JavaScript
- Size: 108 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# moodle-node
Manage Moodle from NodeJS
## Installation
```bash
npm install moodle-node
```## Usage
```javascript
const moodle = require('moodle-node');const user = await moodle.user.createUser({
username: 'joeblow',
password: 'Pass1234!',
email: '[email protected]',
firstname: 'Joe',
lastname: 'Blow',
});
console.log(user);```
## Output
The output is a JSON object or array based on the function called:
```json
[
{
"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](https://fredlackey.com)
[[email protected]](mailto:[email protected])