mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-07 22:40:27 -04:00
9 lines
307 B
TypeScript
9 lines
307 B
TypeScript
import fs from 'node:fs';
|
|
|
|
import Suml from 'suml';
|
|
|
|
import { rootDir } from './paths.ts';
|
|
|
|
export const loadSumlFromBase = (name: string): unknown => new Suml().parse(fs.readFileSync(`${rootDir}/${name}.suml`, 'utf-8'));
|
|
export const loadSuml = (name: string): unknown => loadSumlFromBase(`data/${name}`);
|