node-easy-docx

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i node-easy-docx

Weekly Downloads

25

Version

0.1.3

License

MIT

Unpacked Size

10.1 kB

Total Files

9

Last publish

Collaborators

  • saikksub