deno.land / std@0.166.0 / encoding / front_matter / any.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import { createExtractor, Format, Parser, test as _test } from "./mod.ts";import { parse as parseYAML } from "../yaml.ts";import { parse as parseTOML } from "../toml.ts";
export { Format, test } from "./mod.ts";export const extract = createExtractor({ [Format.YAML]: parseYAML as Parser, [Format.TOML]: parseTOML as Parser, [Format.JSON]: JSON.parse as Parser,});export default extract;
std

Version Info

Tagged at
a year ago