mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
import { readFile } from 'fs/promises';
|
|
import { readDVPL } from './readDVPL';
|
|
|
|
export async function readDVPLFile(file: string) {
|
|
const path = `${file}${file.endsWith('.dvpl') ? '' : '.dvpl'}`;
|
|
const content = await readFile(path);
|
|
const dvpl = readDVPL(content);
|
|
|
|
return dvpl;
|
|
}
|