Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

156 B
Raw Blame
import { parse } from 'yaml'
import { flatten } from './helpers'

export function load(text: string): Map<string, string> {
  return flatten(parse(text))
}