word-lib-tool

Edit Word (.docx) files in n8n — remove generated tab-title paragraphs and other OOXML paragraph fixes.

Package Information

Released: 5 mo ago
Downloads: 4 weekly / 129 monthly
Latest Version: 0.1.0
Author: julian barrios

Documentation

n8n-nodes-word-lib-tool

Edit Word .docx files in n8n using JSZip and OOXML edits (no external API, no Word installed on the server).

Features

  • Remove paragraph containing text: Deletes the first w:p block in word/document.xml whose text runs contain your marker string. Intended for post-processing Google Docs → DOCX exports (e.g. tab title line after deleteTab), without merging w:sectPr (avoids an extra blank title page).

Local development

cd n8n-nodes-word-lib
npm install
npm run build
npm run dev

Point your n8n community nodes directory at this package per n8n community nodes documentation.

Publish to npm

One-time: npm login (or use a granular automation token).

Local publish (no npm provenance; fine for internal use):

npm run build && npm run lint
npm run publish:npm

publish:npm sets RELEASE_MODE=true so prepublishOnly allows the publish (the n8n CLI blocks plain npm publish otherwise).

Recommended (provenance, n8n-verified path): Put this folder in its own GitHub repo, configure Trusted Publishers on npm (or add an NPM_TOKEN secret), then push a semver tag *.*.* so .github/workflows/publish.yml runs npm run release in CI.

License

MIT

Discussion