MCPcopy
hub / github.com/claude-code-best/claude-code / parseYaml

Function parseYaml

src/utils/yaml.ts:9–15  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

7 */
8
9export 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}

Callers 4

parseFrontmatterFunction · 0.85
validateComponentFileFunction · 0.85
parseMarkdownFrontmatterFunction · 0.85
loadCustomModesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected