Gathering detailed insights and metrics for @akumzy/eleventy-plugin-syntaxhighlight
Gathering detailed insights and metrics for @akumzy/eleventy-plugin-syntaxhighlight
Gathering detailed insights and metrics for @akumzy/eleventy-plugin-syntaxhighlight
Gathering detailed insights and metrics for @akumzy/eleventy-plugin-syntaxhighlight
npm install @akumzy/eleventy-plugin-syntaxhighlight
Typescript
Module System
Node Version
NPM Version
48.7
Supply Chain
86.2
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
23,204
Last Day
4
Last Week
74
Last Month
458
Last Year
11,834
2 Commits
2 Watching
1 Branches
1 Contributors
Latest Version
0.0.2
Package Id
@akumzy/eleventy-plugin-syntaxhighlight@0.0.2
Unpacked Size
7.04 kB
Size
3.11 kB
File Count
4
NPM Version
7.5.4
Node Version
15.4.0
Cumulative downloads
Total Downloads
Last day
0%
4
Compared to previous day
Last week
-35.7%
74
Compared to previous week
Last month
-44.9%
458
Compared to previous month
Last year
68.5%
11,834
Compared to previous year
2
This package simply adds line numbers support to Eleventy to official @11ty/eleventy-plugin-syntaxhighligh
1npm install --save-dev @akumzy/eleventy-plugin-syntaxhighlight
1const syntaxHighlight = require('@akumzy/eleventy-plugin-syntaxhighlight') 2 3module.exports = function(eleventyConfig) { 4 eleventyConfig.addPlugin(syntaxHighlight, { showLineNumbers: false, alwaysWrapLineHighlights:false }) 5} 6
```js#/1-2
function myFunction() {
let highlighted = true;
return highlighted;
}
```
To start with a specific line number,
add the number enclosed with square brackets eg. [2] after the hash mark (#
).
The line numbers for this code fence will start at 2 plus the highlighting syntax.
```json#[2]2,3
{
"all": [...],
"nav": [...],
"books": [
{
"inputPath": "./src/articles/finding-oz.md",
"outputPath": "_site/articles/finding-oz/index.html",
"fileSlug": "finding-oz",
"data": {...},
"date": "2009-08-07T13:52:12.000Z",
"url": "/articles/finding-oz/",
"templateContent": "<p>As with most books ... much about The Wizard of Oz</li>\n</ul>\n",
"template": {...}
},
...
],
"programming": [...],
}
```
Philip Borenstein (@pborenstein): eleventy-md-syntax-highlight
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
44 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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