Skip to content
/ docview Public

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

Notifications You must be signed in to change notification settings

sneaks/docview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published