documents / tests /export_usecases.mjs
mxkuzn's picture
solvi documents: cited answers from documents, model and decisions in your browser
1499ec4 verified
Raw History Blame Contribute Delete
327 Bytes
// node tests/export_usecases.mjs > usecases.json : the use-case library as JSON (texts NFC-normalized, as in the page)
import { USE_CASES } from "../usecases/index.js";
const out = USE_CASES.map((u) => ({ ...u, docs: u.docs.map((d) => ({ ...d, text: d.text.normalize("NFC") })) }));
process.stdout.write(JSON.stringify(out));