MCPcopy Create free account
hub / github.com/denoland/std / stringify

Function stringify

yaml/stringify.ts:109–118  ·  view source on GitHub ↗
(
  data: unknown,
  options: StringifyOptions = {},
)

Source from the content-addressed store, hash-verified

107 * @returns A YAML string.
108 */
109export function stringify(
110 data: unknown,
111 options: StringifyOptions = {},
112): string {
113 const state = new DumperState({
114 ...options,
115 schema: SCHEMA_MAP.get(options.schema!)!,
116 });
117 return state.stringify(data);
118}

Callers 2

fnFunction · 0.90
stringify_test.tsFile · 0.90

Calls 2

stringifyMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected