7 lines
235 B
TypeScript
7 lines
235 B
TypeScript
import { parse } from "https://deno.land/std@0.167.0/encoding/yaml.ts"
|
|
|
|
const input = Deno.readTextFileSync('input.txt').trim();
|
|
const yaml = parse(input
|
|
.replaceAll("Test:", "Test:\n -")
|
|
.replace(/If (?:true|false):/g, '- '));
|