14 lines
242 B
TypeScript
14 lines
242 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);
|
||
|
}
|