Installations
npm install @editorjs/header
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Score
99.5
Supply Chain
99
Quality
80.7
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (92.74%)
JavaScript (5.1%)
CSS (2.16%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
editor-js
Download Statistics
Total Downloads
6,683,137
Last Day
2,543
Last Week
62,762
Last Month
240,536
Last Year
2,533,259
GitHub Statistics
MIT License
105 Stars
160 Commits
121 Forks
6 Watchers
13 Branches
18 Contributors
Updated on Feb 06, 2025
Package Meta Information
Latest Version
2.8.8
Package Id
@editorjs/header@2.8.8
Unpacked Size
26.37 kB
Size
7.04 kB
File Count
8
Published on
Oct 09, 2024
Total Downloads
Cumulative downloads
Total Downloads
6,683,137
Last Day
-9.8%
2,543
Compared to previous day
Last Week
0.8%
62,762
Compared to previous week
Last Month
19.7%
240,536
Compared to previous month
Last Year
31.8%
2,533,259
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
4
Heading Tool
Provides Headings Blocks for the Editor.js.
Installation
Get the package
1yarn add @editorjs/header
Include module at your application
1import Header from '@editorjs/header';
Optionally, you can load this tool from CDN JsDelivr CDN
Usage
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});
Shortcut
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});
Config Params
All properties are optional.
Field | Type | Description |
---|---|---|
placeholder | string | header's placeholder string |
levels | number[] | enabled heading levels |
defaultLevel | number | default heading level |
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 } 13 } 14 } 15 16 ... 17});
Tool's settings
You can select one of six levels for heading.
Output data
Field | Type | Description |
---|---|---|
text | string | header's text |
level | number | level of header: 1 for H1, 2 for H2 ... 6 for H6 |
1{ 2 "type": "header", 3 "data": { 4 "text": "Why Telegram is the best messenger", 5 "level": 2 6 } 7}

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1
- Info: no jobLevel write permissions found
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
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Reason
10 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-92r3-m2mg-pj97
- Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw
- Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g
- Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
- Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6
- Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx
Score
4.1
/10
Last Scanned on 2025-02-10
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