MCPcopy
hub / github.com/BuilderIO/gpt-crawler / getStringByteSize

Function getStringByteSize

src/core.ts:176–177  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

174 : Infinity;
175
176 const getStringByteSize = (str: string): number =>
177 Buffer.byteLength(str, "utf-8");
178
179 const nextFileName = (): string =>
180 `${config.outputFileName.replace(/\.json$/, "")}-${fileCounter}.json`;

Callers 1

addContentOrSplitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected