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
|
||
|
|
}
|