UNPKG

@loom-io/front-matter-converter

Version:

Convert front matter yaml and json into json from loom-io files

7 lines (6 loc) 490 B
import type { LoomFile } from "@loom-io/core"; import { DataFormat } from "./utils.js"; export declare function writeToFile(file: LoomFile, matter?: string, content?: string): Promise<void>; export declare function stringifyJson(file: LoomFile, data: unknown): Promise<string>; export declare function ensureNewLine(content: string | undefined): string | undefined; export declare function unify<T>(file: LoomFile, content?: Partial<DataFormat<T>> | string | object | null): Promise<void>;