Gathering detailed insights and metrics for videojs-font
Gathering detailed insights and metrics for videojs-font
Gathering detailed insights and metrics for videojs-font
Gathering detailed insights and metrics for videojs-font
npm install videojs-font
Typescript
Module System
Node Version
NPM Version
99.6
Supply Chain
100
Quality
84.2
Maintenance
100
Vulnerability
100
License
CSS (40.65%)
SCSS (27.59%)
HTML (13.72%)
JavaScript (11.64%)
Handlebars (6.41%)
Total Downloads
91,114,708
Last Day
105,005
Last Week
421,890
Last Month
1,929,651
Last Year
22,063,718
61 Stars
81 Commits
78 Forks
27 Watching
2 Branches
18 Contributors
Latest Version
4.2.0
Package Id
videojs-font@4.2.0
Unpacked Size
129.31 kB
Size
52.78 kB
File Count
39
NPM Version
8.19.4
Node Version
16.20.2
Publised On
06 Jun 2024
Cumulative downloads
Total Downloads
Last day
-0.3%
105,005
Compared to previous day
Last week
-17%
421,890
Compared to previous week
Last month
5.4%
1,929,651
Compared to previous month
Last year
-6.6%
22,063,718
Compared to previous year
This project contains all of the tooling necessary to generate a new icon font for Video.js. The icons themselves are from Google's Material Design Icons (from the commonly available version 3 of the set, with version 4 symbols supplemented as custom SVGs) and Font Awesome.
You can see an overview of the icons used in the default Video.js font here: https://videojs.github.io/font/
1$ npm install grunt-cli # only if you don't already have grunt installed 2$ npm install 3$ grunt
You can add custom icons by calling grunt with the --custom-json
option. It takes a comma delimited list of paths to JSON files of the same format as below and merges it with the default icons file.
Example:
1$ grunt --custom-json=./lib/custom.json,./lib/custom2.json
To make changes to the default Video.js font, simply edit the icons.json
file. You can add or remove icons, either by just selecting new
SVGs from the Material Design set, or pulling in new SVGs altogether.
1{ 2 "font-name": "VideoJS", 3 "root-dir": "./node_modules/material-design-icons/", 4 "icons": [ 5 { 6 "name": "play", 7 "svg": "av/svg/production/ic_play_arrow_48px.svg" 8 }, 9 { 10 "name": "pause", 11 "svg": "av/svg/production/ic_pause_48px.svg" 12 }, 13 { 14 "name": "cool-custom-icon", 15 "svg": "neato-icon.svg", 16 "root-dir": "./custom-icons/neato-icon.svg" 17 } 18 ] 19}
Once you're done, simply run grunt
again to regenerate the fonts and scss partial. To edit the _icons.scss
partial,
update templates/scss.hbs
.
If you are developing a Video.js plugin that uses custom icons, you can also create a new font instead of modifying the
default font. Simply specify a new font-name
and define the icons you want to include:
1{ 2 "font-name": "MyPluginFont", 3 "root-dir": "./node_modules/material-design-icons/", 4 "icons": [ 5 { 6 "name": "av-perm", 7 "svg": "action/svg/production/ic_perm_camera_mic_48px.svg" 8 }, 9 { 10 "name": "video-perm", 11 "svg": "av/svg/production/ic_videocam_48px.svg" 12 }, 13 { 14 "name": "audio-perm", 15 "svg": "av/svg/production/ic_mic_48px.svg" 16 } 17 ] 18}
Generate the MyPluginFont
font files using the --custom-json
option:
1$ grunt --custom-json=MyPluginFont.json
By default, the regular Video.js icons are also included in the font. If you want to exclude these icons, when you're creating a Video.js plugin font for example, use the --exclude-default
option.
Example:
1$ grunt --custom-json=MyPluginFont.json --exclude-default
Videojs-font generates unicode strings for default and custom icons which are used as css pseudo-element content values by the videojs-icons.css file.
Icon Name | Unicode |
---|---|
play | 'f101' |
play-circle | 'f102' |
pause | 'f103' |
volume-mute | 'f104' |
volume-low | 'f105' |
volume-mid | 'f106' |
volume-high | 'f107' |
fullscreen-enter | 'f108' |
fullscreen-exit | 'f109' |
spinner | 'f10a' |
subtitles | 'f10b' |
captions | 'f10c' |
hd | 'f10d' |
chapters | 'f10e' |
downloading | 'f10f' |
file-download | 'f110' |
file-download-done | 'f111' |
file-download-off | 'f112' |
share | 'f113' |
cog | 'f114' |
square | 'f115' |
circle | 'f116' |
circle-outline | 'f117' |
circle-inner-circle | 'f118' |
cancel | 'f119' |
repeat | 'f11a' |
replay | 'f11b' |
replay-5 | 'f11c' |
replay-10 | 'f11d' |
replay-30 | 'f11e' |
forward-5 | 'f11f' |
forward-10 | 'f120' |
forward-30 | 'f121' |
audio | 'f122' |
next-item | 'f123' |
previous-item | 'f124' |
shuffle | 'f125' |
cast | 'f126' |
picture-in-picture-enter | 'f127' |
picture-in-picture-exit | 'f128' |
'f129' | |
'f12a' | |
'f12b' | |
tumblr | 'f12c' |
'f12d' | |
audio-description | 'f12e' |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 16/28 approved changesets -- score normalized to 5
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
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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