(input: string)
| 7 | */ |
| 8 | |
| 9 | export function parseYaml(input: string): unknown { |
| 10 | if (typeof Bun !== 'undefined') { |
| 11 | return Bun.YAML.parse(input) |
| 12 | } |
| 13 | // eslint-disable-next-line @typescript-eslint/no-require-imports |
| 14 | return (require('yaml') as typeof import('yaml')).parse(input) |
| 15 | } |
no outgoing calls
no test coverage detected