MCPcopy
hub / github.com/Waishnav/devspace / codePointLength

Function codePointLength

src/process-sessions.ts:105–107  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

103}
104
105function codePointLength(value: string): number {
106 return Array.from(value).length;
107}
108
109function sliceCodePoints(value: string, start: number, end?: number): string {
110 return Array.from(value).slice(start, end).join("");

Callers 3

appendMethod · 0.85
drainMethod · 0.85
truncateOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected