# @gzzhanghao/docx2quill

> Convert DOCX to Quill Delta.

Latest version **0.3.1** (published 2017-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gzzhanghao/docx2quill
pnpm add @gzzhanghao/docx2quill
yarn add @gzzhanghao/docx2quill
bun add @gzzhanghao/docx2quill
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2017-07-13 |
| First published | 2017-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jason |
| Maintainers | gzzhanghao |

## Links

- npm: https://www.npmjs.com/package/@gzzhanghao/docx2quill
- Repository: https://github.com/gzzhanghao/docx2quill
- Homepage: https://github.com/gzzhanghao/docx2quill#readme
- Issues: https://github.com/gzzhanghao/docx2quill/issues
- npm.io page: https://npm.io/package/@gzzhanghao/docx2quill

## Dependencies (3)

- [units-css](https://npm.io/package/units-css.md) ^0.4.0
- [quill-delta](https://npm.io/package/quill-delta.md) ^3.5.0
- [@gzzhanghao/docx](https://npm.io/package/@gzzhanghao/docx.md) ^0.2.0

## Recent versions

- 0.3.1 (latest) — 2017-07-13
- 0.3.0 — 2017-07-13
- 0.2.0 — 2017-07-10
- 0.1.10 — 2017-07-05

## README

# docx2quill

Convert DocX to Quill Delta.

__This package is under heavy development, use it at your own risk__

## Usage

```javascript
import docx2Quill from '@gzzhanghao/docx2quill'

docx2Quill(docxBuffer, {

  /**
   * Custom image processor
   */
  async processImage(parser, filePath, size) {
    parser.delta = parser.delta.insert({
      image: await uploadImage(await parser.zip.file(filePath).async('nodebuffer'))
    }, {
      width: size.width,
      height: size.height,
    })
  },

  /**
   * Report for item not found error
   */
  notfoundError(type, id) {
    // type: number | abstract number | level | relationship | style
  },

}).then(delta => {

  // delta: Quill Delta
})
```

---
_Source: https://npm.io/package/@gzzhanghao/docx2quill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
