
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
canvas-student-metadata
Advanced tools
A handler that uses the CACCL library to add and modify student metadata on a per-course level.
A handler that uses the CACCL library to add and modify student metadata on a per-course level.
Import the library:
const StudentMetadata = require('canvas-student-metadata');
Initialize using an instance of CACCL-API:
const studentMetadata = new StudentMetadata(api);
This is an asynchronous function
Argument:
courseId – a Canvas course idReturns:
Object where keys are studentIds and values are metadata objects.
Note: students that do not have metadata have a value of undefined
Example:
In our example, the courseId is 104 and the studentId is 77901
const metadataMap = await studentMetadata.getStudentMetadataMap(104); if (metadataMap[77901] === undefined) { console.log('Student has no metadata'); } else { console.log('Student has metadata. Here it is:'); console.log(metadataMap[77901]); }
This is an asynchronous function
Arguments:
courseId – the id of the course containing the studentstudentId – the id of the student to updatemetadata – an metadata object (must be JSONifiable)Example:
In our example, the courseId is 104 and the studentId is 77901
const metadata = { heightIn: 48, ageYrs: 14, favoriteColor: 'red', }; await studentMetadata.setStudentMetadata(104, 77901, metadata);
FAQs
A handler that uses the CACCL library to add and modify student metadata on a per-course level.
We found that canvas-student-metadata demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.