One paragraph of scratch-harness instructions: three throwaway Bun scripts (make-sample.mjs, spike.mjs, spike2.mjs) that generate a sample .docx and exercise the tracked and untracked edit paths backing the GO decision in docxodus-spike.md. Re-running the spike evidence; otherwise skip.
Docxodus spike scratch
Throwaway scripts backing the GO decision in ../docxodus-spike.md. Run under
Bun against docxodus@6.4.0:
bun add docxodus mammoth docx # docx only used to generate the sample
bun make-sample.mjs # writes sample.docx
bun spike.mjs # Q1-Q4: init under Bun, html, offsets, tracked edit, redline
bun spike2.mjs # plain (untracked) edit path used by the word-integration tool