Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

297 B
Raw Blame
import { sanitizeText } from "../render/sanitize.js";

export function formatJqResults(results: ReadonlyArray<unknown>): string {
  return results
    .map(
      (value) =>
        `${typeof value === "string" ? sanitizeText(value) : (JSON.stringify(value) ?? "null")}\n`,
    )
    .join("");
}