feishu-docx
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

Feishu Docx

Convert Feishu Docx into other formats (Markdown, HTML ...)

Visit https://github.com/longbridgeapp/feishu-pages to learn more.

Installation

yarn add feishu-docx

Usage

import { MarkdownRenderer } from 'feishu-docx'

// Load docx JSON from file
const docx = fs.readFileSync('test.json')
const render = new MarkdownRenderer(docx)
const text = render.parse();
const fileTokens = render.fileTokens;

Now fileTokens is:

{
  "TVEyb1pmWo8oIwxyL3kcIfrrnGd": {
      token: 'TVEyb1pmWo8oIwxyL3kcIfrrnGd',
      type: 'file',
  }
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i feishu-docx

Weekly Downloads

20

Version

0.6.5

License

MIT

Unpacked Size

512 kB

Total Files

44

Last publish

Collaborators

  • huacnlee