# node-quill-converter-xp

> Convert HTML to Delta

Latest version **0.1.3** (published 2023-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-quill-converter-xp
pnpm add node-quill-converter-xp
yarn add node-quill-converter-xp
bun add node-quill-converter-xp
```

## 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.1.3 |
| Published | 2023-08-16 |
| First published | 2023-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | yucheng-Li |
| Maintainers | yuchengli |
| Keywords | node, quill, delta, convert, html |

## Links

- npm: https://www.npmjs.com/package/node-quill-converter-xp
- Homepage: https://github.com/yucheng-Li/node-quill-converter-xp
- Issues: https://github.com/yucheng-Li/node-quill-converter-xp/issues
- npm.io page: https://npm.io/package/node-quill-converter-xp

## Dependencies (2)

- [jsdom](https://npm.io/package/jsdom.md) ^11.8.0
- [quill](https://npm.io/package/quill.md) ^1.3.6

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2023-08-16
- 0.1.1 — 2023-08-15

## README

# node-quill-converter-xp
> Convert HTML to a Quill Delta or a Quill Delta to HTML

The purpose of this package is to assist in migrating to or from the [Quill editor](https://quilljs.com/).

## Installation
```
# Via NPM
npm install node-quill-converter-xp --save

# Via Yarn
yarn add node-quill-converter-xp
```

## Getting Started

### Convert a HTML string to a Quill delta:
```js
const { convertHtmlToDelta } = require('node-quill-converter-xp');

let htmlString = '<p>hello, <strong>world</strong></p>';
let delta = convertHtmlToDelta(htmlString);

console.log(JSON.stringify(delta)); // {"ops":[{"insert":"hello, "},{"insert":"world","attributes":{"bold":true}}]}
```

---
_Source: https://npm.io/package/node-quill-converter-xp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
