UNPKG

@earendil-works/pi-coding-agent

Version:

Coding agent CLI with read, bash, edit, write tools and session management

9 lines • 386 B
/** Split a leading UTF-8 byte order mark from decoded text. */ export function splitBom(content) { return content.startsWith("\uFEFF") ? { bom: "\uFEFF", text: content.slice(1) } : { bom: "", text: content }; } /** Remove a leading UTF-8 byte order mark from decoded text. */ export function stripBom(content) { return splitBom(content).text; } //# sourceMappingURL=text.js.map