Installations
npm install hexo-tag-gdemo
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.16.0
NPM Version
6.12.0
Score
53.6
Supply Chain
97.4
Quality
75.2
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
heowc
Download Statistics
Total Downloads
8,867
Last Day
1
Last Week
7
Last Month
14
Last Year
183
GitHub Statistics
13 Stars
358 Commits
2 Forks
1 Watching
4 Branches
2 Contributors
Package Meta Information
Latest Version
0.11.1
Package Id
hexo-tag-gdemo@0.11.1
Unpacked Size
24.20 kB
Size
6.18 kB
File Count
14
NPM Version
6.12.0
Node Version
10.16.0
Total Downloads
Cumulative downloads
Total Downloads
8,867
Last day
0%
1
Compared to previous day
Last week
75%
7
Compared to previous week
Last month
600%
14
Compared to previous month
Last year
-37.1%
183
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
hexo-tag-gdemo
glorious-demo tag plugin for Hexo (Based on version 0.8.1
)
Introduction
This is a Hexo tag plugin which allow you to glorious-demo on your blog posts.
DEMO
Installation
1npm install @heowc/hexo-tag-gdemo
※ Deprecated npm install hexo-tag-gdemo
Usage
1{% gdemo_terminal command [minHeight] [windowTitle] [onCompleteDelay] [promptString] [id] [highlightingLang] %} 2content 3{% endgdemo_terminal %}
or
1{% gdemo_editor [minHeight] [windowTitle] [onCompleteDelay] [id] [highlightingLang] %} 2content 3{% endgdemo_editor %}
command
command represents one or more commands separated by ';'. Be ware that the commands can not contain ' as hexo would assume that the argument is finished and the next will follow what will lead to the object not beeing rendered.
minHeight
minHeight defines the minimal hight of the editor/terminal window. Beware that it can grow depending on the content you provide.
windowTitle
windowTitle will be displayed as title of the editor/terminal window. Use whatever you like.
onCompleteDelay
onCompleteDelay defines the wait delay, after a line of commands/code was typed. This does not affect the content in gdemo_terminal. Content will instantly appear after all commands are typed.
promptString
The promptString defines, which character or character sequence will be displayed in front of the typed commands. You can use '>' or 'root@local:/$ ' or anything else you like to display.
id
The id parameter sets a unique id for the instance of editor/terminal. The IDs have to be different for multiple instances inside of the same post.
highlightingLang
highlightingLang defines the designated highlighting language. If not specified, javascript will be used. You can find a list of supported languages at the prismjs homepage.
_config.yml
If you do not want to use the CDN, fill in the following:
1gdemo: 2 style_url: 3 script_url: 4 prismjs_theme:
FAQ
Please read here if you can not display gdemo well.
Example
1. When using gdemo_terminal
1{% gdemo_terminal 'node ./demo' '250px' 'bash' '500' '$' 'demo-teriminal' %} 2Hello World! 3{% endgdemo_terminal %}
2. When using gdemo_terminal
[multiple commands]
- command can be divided into multiple commands based on
;
.
1{% gdemo_terminal 'cd /usr/bin;./node ./demo' '250px' 'bash' '500' '$' 'demo-teriminal' %} 2Hello World! 3{% endgdemo_terminal %}
3. When using gdemo_editor
1{% gdemo_editor '250px' 'bash' '500' 'demo-editor' %} 2function greet(){ 3 console.log("Hello World!"); 4} 5 6greet(); 7{% endgdemo_editor %}
See more here.
License
MIT
Thanks
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
Reason
7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/heowc/hexo-tag-gdemo/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/heowc/hexo-tag-gdemo/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/heowc/hexo-tag-gdemo/ci.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:24
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
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 'main'
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
Score
4
/10
Last Scanned on 2024-12-16
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