feat(metadata): implement MetadataRequest and supporting classes for file metadata extraction and response formatting

This commit is contained in:
buzz-lightsnack-2007 2025-04-21 21:34:08 +08:00
parent 72769a3ef4
commit 74fb118aa4
4 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,18 @@
const Parser = require(`./parser`);
class SimpleMetadata extends Parser {
/*
Clean the log information.
@param {Object} ENTRY the selected entry, or the entries
*/
constructor(ENTRY) {
super(ENTRY, {
"name": "originalname",
"type": "mimetype",
"size": "size"
});
};
}
module.exports = SimpleMetadata;