* Remove xlsx support * Restructure exports to avoid duplication of DOM-related code * browser DOM exports * Fixing exports field in package.json
12 lines
233 B
JavaScript
12 lines
233 B
JavaScript
import { readFile } from 'node:fs/promises'
|
|
|
|
/**
|
|
*
|
|
* @param {string} path
|
|
* @returns {Promise<ODTFile>}
|
|
*/
|
|
export async function getOdtTemplate(path) {
|
|
const fileBuffer = await readFile(path)
|
|
return fileBuffer.buffer
|
|
}
|