0.1.3 • Published 5 years ago

node-easy-docx v0.1.3

Weekly downloads
27
License
MIT
Repository
github
Last release
5 years ago

node-easy-docx

NodeJs library to parse docx file content into JSON format.

node-easy-docx provides a simple solution to parse Office Open XML format files, ONLY docx, into JSON Object.

Please read Office Open XML for more information.

Why JSON Objects?

node-easy-docx exposes .docx file into well structured and organized JSON objects. Using JavaScript, you can easily render HTML or any other document.

Features

Currently node-easy-docx supports paragraphs and text formats only. Other features like - Images, Tables, Absolute contents are still in development.

Installation

npm install --save node-easy-docx

Usage

const EasyDocx = require('node-easy-docx')

const easyDocx = new EasyDocx({
  path: 'path/to/docx/file'
})

easyDocx.parseDocx()
  .then(data => {
    // JSON data as result
    console.log(data)
  })
  .catch(err => {
    console.error(err)
  })

License

MIT

Author

saikksub