mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-31 15:37:19 +03:00
ddecae80dd
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
9 lines
215 B
TypeScript
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
|
|
}
|