MCPcopy Create free account
hub / github.com/Effect-TS/effect / printSingleLine

Function printSingleLine

packages/effect/src/encoding/Yaml.ts:1689–1689  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1687class PrintError extends Error {}
1688
1689const printSingleLine = (text: string): string => isPlainSafe(text) ? text : doubleQuote(text)
1690
1691// YAML 1.2.2 §7.4.2 limits an implicit key to 1024 characters, including quotes.
1692const implicitKeyLimit = 1024

Callers 2

printKeyFunction · 0.85
scalarMethod · 0.85

Calls 2

isPlainSafeFunction · 0.85
doubleQuoteFunction · 0.85

Tested by

no test coverage detected