MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / normalizeString

Function normalizeString

packages/codex-native-api/src/native_api_server.ts:3036–3038  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3034}
3035
3036function normalizeString(value: unknown): string {
3037 return typeof value === 'string' ? value.trim() : '';
3038}
3039
3040function normalizeNullableString(value: unknown): string | null {
3041 const normalized = normalizeString(value);

Calls

no outgoing calls

Tested by

no test coverage detected