Deno has an extract function defined in `std/encoding/front_matter/yaml.ts`. You can import this at the top of your source file and use it to parse valid YAML front matter into a TypeScript object. First read the file into a variable using `const text = await Deno.readTextFile('..path/to/markdown.md);`. Next, you can call the extract function on this text, destructuring `attrs` like this: `const {attrs} = extract(text);`. Note that `extract` supports generics, so if you have a type alias for your front matter, you can use it thus: `extract(text)`. Finally, let’s say you have a title field in your front matter. You can access it using `attrs.title`.