silverbullet/plug-api/syscalls/yaml.ts

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