platform/services/print/pod-print/src/convert.ts
Andrey Sobolev ddecae80dd
Move services to public (#6156)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-07-28 14:55:43 +07:00

9 lines
215 B
TypeScript

//
// Copyright © 2024 Hardcore Engineering Inc.
//
import mammoth from 'mammoth'
export async function convertToHtml (buffer: Buffer): Promise<string> {
return (await mammoth.convertToHtml({ buffer })).value
}