Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

255 B
Raw Blame
function toCsv(notes) {
  const quote = (value) => `"${String(value).replaceAll('"', '""')}"`;
  return (
    [
      "id,title",
      ...notes.map((note) => `${note.id},${quote(note.title)}`),
    ].join("\n") + "\n"
  );
}

module.exports = { toCsv };