MCPcopy Index your code
hub / github.com/codeaashu/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}
16

Callers 2

parseFrontmatterFunction · 0.85
validateComponentFileFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected