Parse Microsoft Office files in Node.JS

两盒软妹~` 提交于 2019-12-02 22:39:35

While there don't seem to be anything you can get with NPM that will do Word directly, you might be able to use a REST API to request it via another cloud service. For example Saaspose (they of the famous Aspose tools) have public API for Word, Excel, PDF, and others. They list node.js, javascript, and Heroku support on their page.

EDIT:

I see that Saaspose is now called Aspose for Cloud

Another API that claims something similar is Doxument

Office package: npm install office seems to provide at least part of the answer. I use it to read Excel files, so far have not tried any Word docs.

LiamB

There doesn't seem to be any yet. See below for something that might help.

Can I read PDF or Word Docs with Node.js?

You can use mammoth to parse .docx files https://www.npmjs.com/package/mammoth and xlsx to parse .xlsx files https://github.com/SheetJS/js-xlsx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!