odfjs/scripts/odf/odtTemplate-forNode.js
David Bruant 5a539f333d
expose odt text function (#1)
* Remove xlsx support

* Restructure exports to avoid duplication of DOM-related code

* browser DOM exports

* Fixing exports field in package.json
2025-04-17 17:39:08 +02:00

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
}