MCPcopy Index your code
hub / github.com/coder/mux / tokensToString

Function tokensToString

src/node/runtime/sshConfigParser.ts:79–87  ·  view source on GitHub ↗
(tokens: ParsedValueToken[])

Source from the content-addressed store, hash-verified

77}
78
79function tokensToString(tokens: ParsedValueToken[]): string {
80 return tokens
81 .map(({ val, separator, quoted }) => {
82 const rendered = quoted ? `"${val}"` : val;
83 return `${separator}${rendered}`;
84 })
85 .join("")
86 .trimStart();
87}
88
89type ComputedConfigValue = string | string[] | ParsedValueToken[];
90

Callers 2

toStringValueFunction · 0.85
toStringArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected