Files
glips--figma-context-mcp/src/utils/yaml-dump.ts
T
wehub-resource-sync 588cfc5bb3
Release / release-please (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:45:31 +08:00

14 lines
423 B
TypeScript

import yaml from "js-yaml";
// Output goes to LLMs, not human editors — optimize for speed over readability.
// noRefs skips O(n²) reference detection; lineWidth:-1 skips line-folding;
// JSON_SCHEMA reduces per-string implicit type checks.
export function dumpYaml(value: unknown): string {
return yaml.dump(value, {
noRefs: true,
lineWidth: -1,
noCompatMode: true,
schema: yaml.JSON_SCHEMA,
});
}