UNPKG

mindee

Version:

Mindee Client Library for Node.js

19 lines (18 loc) 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BufferInput = void 0; const localInputSource_1 = require("./localInputSource"); const inputSource_1 = require("./inputSource"); class BufferInput extends localInputSource_1.LocalInputSource { constructor({ buffer, filename }) { super({ inputType: inputSource_1.INPUT_TYPE_BUFFER, }); this.fileObject = buffer; this.filename = filename; } async init() { this.mimeType = await this.checkMimetype(); } } exports.BufferInput = BufferInput;