# @kenyog/rtf-to-quill-delta

> converter from rtf file to quill delta format.

Latest version **0.2.0** (published 2019-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kenyog/rtf-to-quill-delta
pnpm add @kenyog/rtf-to-quill-delta
yarn add @kenyog/rtf-to-quill-delta
bun add @kenyog/rtf-to-quill-delta
```

Provides the command `rtf-to-quill-delta`.

## 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.2.0 |
| Published | 2019-02-01 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 154.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kenyog |
| Maintainers | kenyog |
| Keywords | rtf, quill, delta, convert |

## Links

- npm: https://www.npmjs.com/package/@kenyog/rtf-to-quill-delta
- npm.io page: https://npm.io/package/@kenyog/rtf-to-quill-delta

## Dependencies (3)

- [commander](https://npm.io/package/commander.md) ^2.19.0
- [quill-delta](https://npm.io/package/quill-delta.md) ^3.6.2
- [@kenyog/rtf-parser](https://npm.io/package/@kenyog/rtf-parser.md) ^1.2.1

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.2.0 (latest) — 2019-02-01
- 0.1.0 — 2018-06-07
- 0.0.2 — 2018-05-30
- 0.0.1 — 2018-05-23

## README

rtf-to-quill-delta
==================

This is a Node.js module for converting rtf file into quill delta format.


## Requirement

This modules depends on following modules.

* [@kenyog/rtf-parser](https://github.com/kenyog/rtf-parser)
* [quill-delta](https://quilljs.com/docs/delta/)

## Usage

sample program
```JavaScript
const RtfToDeltaConverter = require('@kenyog/rtf-to-quill-delta');
async function main() {
  let rtf = await readFile('test.rtf', {encoding: 'ascii'});
  let converter = new RtfToDeltaConverter();
  let delta = await converter.convert(rtf);
  console.log(JSON.stringify(delta, null, 2));
}
```

Output
```json
{
  "ops": [
    {
      "insert": "ai",
      "attributes": {
        "size": "8px",
        "color": "#000000"
      }
    },
    {
      "insert": "ueoaiu",
      "attributes": {
        "bold": true,
        "size": "10.6px",
        "color": "#000000"
      }
    },
    {
      "insert": "eo",
      "attributes": {
        "bold": false,
        "size": "8px",
        "color": "#000000"
      }
    },
    {
      "insert": "\n"
    }
  ]
}
```

## Install

```
npm install @kenyog/rtf-to-quill-delta
```

## Licence

MIT

## Author

[kenyog](https://github.com/kenyog)

---
_Source: https://npm.io/package/@kenyog/rtf-to-quill-delta · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
