Gathering detailed insights and metrics for editorjs-header-with-anchor
Gathering detailed insights and metrics for editorjs-header-with-anchor
npm install editorjs-header-with-anchor
Typescript
Module System
Node Version
NPM Version
65.3
Supply Chain
95.4
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (92.32%)
CSS (7.68%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
66,755
Last Day
144
Last Week
1,009
Last Month
4,435
Last Year
35,216
MIT License
9 Stars
104 Commits
4 Forks
8 Branches
1 Contributors
Updated on Jan 07, 2023
Latest Version
2.6.0
Package Id
editorjs-header-with-anchor@2.6.0
Unpacked Size
30.17 kB
Size
11.59 kB
File Count
6
NPM Version
6.12.1
Node Version
12.13.1
Cumulative downloads
Total Downloads
Last Day
-44.2%
144
Compared to previous day
Last Week
-14.4%
1,009
Compared to previous week
Last Month
63.3%
4,435
Compared to previous month
Last Year
142.5%
35,216
Compared to previous year
Provides Headings Blocks with the ability to set an anchor text for the Editor.js. Forked by Header Tool
Get the package
1npm i --save editorjs-header-with-anchor
Include module at your application
1const Header = require('editorjs-header-with-anchor');
dist
from repositorydist/bundle.js
file to your page.Add a new Tool to the tools
property of the Editor.js initial config.
1var editor = EditorJS({ 2 ... 3 4 tools: { 5 ... 6 header: Header, 7 }, 8 9 ... 10});
Available characters: all Latin letters, digitals, dash, and underscore.
In the cyrToLat
branch, you can find additional functionality: Cyrillic characters are replaced by Latin letters,
for example, ш
to sch
.
In the maxLength
branch, you can find additional functionality: If you want to set the maximum length of the header text, you need to set the checkHeaderLength
parameter to TRUE
in the config.
In the cyrToLat_with_maxLength
branch, you can find additional features from branches cyrToLat
and maxLength
at the same time.
P.S. The anchor value is displayed next to the header block only when there is text in the header block.
You can insert this Block by a useful shortcut. Set it up with the tools[].shortcut
property of the Editor's initial config.
1var editor = EditorJS({ 2 ... 3 4 tools: { 5 ... 6 header: { 7 class: Header, 8 shortcut: 'CMD+SHIFT+H', 9 }, 10 }, 11 12 ... 13});
All properties are optional.
Field | Type | Description |
---|---|---|
placeholder | string | header's placeholder string |
levels | number[] | enabled heading levels |
defaultLevel | number | default heading level |
allowAnchor | boolean | Anchor enabling (default: true ) |
anchorLength | number | Anchor length (default: 50 ) |
1var editor = EditorJS({ 2 ... 3 4 tools: { 5 ... 6 header: { 7 class: Header, 8 config: { 9 placeholder: 'Enter a header', 10 levels: [2, 3, 4], 11 defaultLevel: 3, 12 allowAnchor: true, 13 anchorLength: 100, 14 } 15 } 16 } 17 18 ... 19});
Field | Type | Description |
---|---|---|
text | string | header's text |
level | number | level of header: 1 for H1, 2 for H2 ... 6 for H6 |
anchor | string | anchor's text |
1{ 2 "type": "header", 3 "data": { 4 "text": "Why Telegram is the best messenger", 5 "level": 2, 6 "anchor": "Anchor" 7 } 8}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
37 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-17
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