Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createMetadata(fileName) {
this.fileName = fileName;
this.mimetype = mimer(fileName);
const { mimetype, base64 = '' } = this;
this.content = uri({ mimetype, base64 });
return this;
}