Installations
npm install node-quill-converter
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.18.1
NPM Version
6.13.4
Score
64.9
Supply Chain
70.9
Quality
69.7
Maintenance
50
Vulnerability
96.1
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
joelcolucci
Download Statistics
Total Downloads
705,929
Last Day
378
Last Week
1,306
Last Month
5,998
Last Year
207,067
GitHub Statistics
96 Stars
33 Commits
25 Forks
2 Watching
12 Branches
1 Contributors
Bundle Size
2.85 MB
Minified
706.98 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.3.3
Package Id
node-quill-converter@0.3.3
Unpacked Size
18.52 kB
Size
6.63 kB
File Count
10
NPM Version
6.13.4
Node Version
10.18.1
Total Downloads
Cumulative downloads
Total Downloads
705,929
Last day
35%
378
Compared to previous day
Last week
-18.1%
1,306
Compared to previous week
Last month
12.5%
5,998
Compared to previous month
Last year
56%
207,067
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
node-quill-converter
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
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
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
30 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-4943-9vgg-gr5r
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
1.7
/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