mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
23 lines
451 B
Plaintext
23 lines
451 B
Plaintext
import JsPsychMetadata from '../dist/index.js';
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
const metadata = new JsPsychMetadata();
|
|
|
|
const directoryPath = './test';
|
|
|
|
fs.readdir(directoryPath, (err, files) => {
|
|
if (err) {
|
|
console.error('Error reading directory:', err);
|
|
return;
|
|
}
|
|
|
|
console.log(`Files in ${directoryPath}:`);
|
|
files.forEach(file => {
|
|
console.log(file);
|
|
});
|
|
});
|
|
|
|
|
|
console.log("metadata:", metadata.getMetadata());
|