UNPKG

tika-api

Version:
12 lines (11 loc) 292 B
export default class Unpack { constructor(API) { this.api = API; } async unpackFromContent(content /*buffer, stream, blob or plain string*/) { const req = await this.api.newBaseRequest('PUT'); req.path = '/unpack'; req.body = content; return await req.exec(); } }