Gathering detailed insights and metrics for remark-kbd-plus
Gathering detailed insights and metrics for remark-kbd-plus
npm install remark-kbd-plus
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.7
Supply Chain
99.3
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,724
Last Day
1
Last Week
5
Last Month
24
Last Year
508
2 Stars
7 Commits
3 Watching
14 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.20
Package Id
remark-kbd-plus@1.0.20
Unpacked Size
8.57 kB
Size
3.30 kB
File Count
5
NPM Version
6.13.6
Node Version
13.7.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-66.7%
5
Compared to previous week
Last month
-63.6%
24
Compared to previous month
Last year
8.5%
508
Compared to previous year
This JS plugin for remark parses custom Markdown syntax to handle keyboard keys in the format ++Cmd+Alt+M++
similar to used in the Python Markdown extension pymdownx.
It adds a new node type to the mdast produced by remark: kbd
. While pymdownx.keys
itemizes the single keys and allows creation of nested objects, remark-kbd-plus
currently places the strings wrapped in ++
into one kbd
node. If you are using rehype, the stringified HTML result will be <kbd>
.
1Hit ++Enter++ twice to create a new paragraph.
Kbd
(Parent
) represents a reference to a user.
1interface Kbd <: Parent { 2 type: "kbd"; 3}
For example, the following markdown:
++Cmd+Alt+M++
Yields:
1{ 2 type: 'kbd', 3 children: [{ 4 type: 'text', 5 value: 'Cmd+Alt+M' 6 }] 7}
This plugin is compatible with rehype. Kbd
mdast nodes will become <kbd>Cmd+Alt+M</kbd>
.
npm:
1npm install remark-kbd-plus
Dependencies:
1const unified = require('unified') 2const remarkParse = require('remark-parse') 3const stringify = require('rehype-stringify') 4const remark2rehype = require('remark-rehype') 5 6const remarkKbd = require('remark-kbd-plus')
Usage:
1unified() 2 .use(remarkParse) 3 .use(remarkKbd) 4 .use(remark2rehype) 5 .use(stringify)
remark-kbd-plus © 2019 Adam Twardoch Based on remark-kbd © Zeste de Savoir
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/7 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
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-20
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