webzone/custom/toml/toml.ts
Sam Therapy 90ee5d0a69
Some checks failed
continuous-integration/drone/push Build is failing
Upgrade to Deno 1.30.2
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-04 16:22:24 -06:00

6 lines
177 B
TypeScript

import { parse } from "std/encoding/toml.ts"
export default async function toml(path: string | URL) {
const content = await Deno.readTextFile(path)
return parse(content)
}