// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { createExtractor, type Extractor, Parser } from "./create_extractor.ts";
import { parse as parseYAML } from "jsr:/@std/yaml@^0.215.0/parse";
import { parse as parseTOML } from "jsr:/@std/toml@^0.215.0/parse";

export const extract: Extractor = createExtractor({
  yaml: parseYAML as Parser,
  toml: parseTOML as Parser,
  json: JSON.parse as Parser,
});
