Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 889 Bytes

File metadata and controls

51 lines (35 loc) · 889 Bytes

DocView

A lightweight .docx viewer for people who refuse to install Microsoft Office.

Converts Word documents to formatted terminal output, raw HTML, or a styled browser preview — all from the command line.

Install

git clone https://github.com/sneaks/docview.git
cd docview
npm install
npm link

Usage

# View in terminal with formatting
docview report.docx

# Raw HTML to stdout (great for piping)
docview report.docx --html

# Open styled preview in your browser
docview report.docx --open

# Save as a standalone HTML file
docview report.docx --output report.html

# JSON output (filename, html, text, messages)
docview report.docx --json

What it handles

  • Headings, bold, italic
  • Tables (ASCII in terminal, styled in HTML)
  • Lists (bullet and numbered)
  • Links and images
  • Page breaks

Run tests

npm test

License

MIT