Files
plainleaf/plug-api/syscalls/yaml.ts
T
2024-02-08 21:00:45 +01:00

14 lines
243 B
TypeScript

import { syscall } from "../syscall.ts";
export function parse(
text: string,
): Promise<any> {
return syscall("yaml.parse", text);
}
export function stringify(
obj: any,
): Promise<string> {
return syscall("yaml.stringify", obj);
}