Files
DevToysWeb/lib/yaml.ts
rusconn 497991f133 perf!: reduce the bundle size of /converters/json-yaml
BREAKING CHANGE: empty keys in yaml are no longer supported
2023-06-15 19:56:02 +09:00

5 lines
126 B
TypeScript

import { tryCatchK } from "fp-ts/lib/Option";
import yaml from "js-yaml";
export const safeYamlParse = tryCatchK(yaml.load);