* fix(pages): reserve publishing for the REA website * docs(website): add worked guides and agent prompt examples * ci(website): check relevant PRs and publish only on demand * docs(website): clarify IDA coverage and analysis session lifetime
12 lines
255 B
JavaScript
12 lines
255 B
JavaScript
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 };
|