Installations
npm install node-quill-converter-custom
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.16.0
NPM Version
7.9.0
Score
60.9
Supply Chain
69.8
Quality
69.1
Maintenance
50
Vulnerability
96.1
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
randomwalklabsco
Download Statistics
Total Downloads
18,017
Last Day
3
Last Week
107
Last Month
312
Last Year
3,109
GitHub Statistics
39 Commits
1 Watching
3 Branches
Bundle Size
2.86 MB
Minified
708.78 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
node-quill-converter-custom@1.0.0
Unpacked Size
10.89 kB
Size
4.28 kB
File Count
7
NPM Version
7.9.0
Node Version
14.16.0
Total Downloads
Cumulative downloads
Total Downloads
18,017
Last day
-88%
3
Compared to previous day
Last week
35.4%
107
Compared to previous week
Last month
97.5%
312
Compared to previous month
Last year
28.9%
3,109
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
node-quill-converter ![NPM version](https://img.shields.io/npm/v/node-quill-converter.svg)
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.
Installation
# Via NPM
npm install node-quill-converter --save
# Via Yarn
yarn add node-quill-converter
Getting Started
Convert a plain text string to a Quill delta:
1const { convertTextToDelta } = require('node-quill-converter'); 2 3let text = 'hello, world'; 4let delta = convertTextToDelta(text); 5 6console.log(JSON.stringify(delta)); // {"ops":[{"insert":"hello, world\n"}]}
Convert a HTML string to a Quill delta:
1const { convertHtmlToDelta } = require('node-quill-converter'); 2 3let htmlString = '<p>hello, <strong>world</strong></p>'; 4let delta = convertHtmlToDelta(htmlString); 5 6console.log(JSON.stringify(delta); // {"ops":[{"insert":"hello, "},{"insert":"world","attributes":{"bold":true}}]}
Convert a Quill delta to an HTML string:
1const { convertDeltaToHtml } = require('node-quill-converter'); 2 3let html = convertDeltaToHtml(delta); 4 5console.log(html) ; // '<p>hello, <strong>world</strong></p>'
License
MIT License Copyright (c) 2018 Joel Colucci
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
7 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-4943-9vgg-gr5r
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.1
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More