Gathering detailed insights and metrics for ng2-youtube-player-mini
Gathering detailed insights and metrics for ng2-youtube-player-mini
Gathering detailed insights and metrics for ng2-youtube-player-mini
Gathering detailed insights and metrics for ng2-youtube-player-mini
npm install ng2-youtube-player-mini
Typescript
Module System
Node Version
NPM Version
49.9
Supply Chain
88.2
Quality
75.7
Maintenance
50
Vulnerability
97.9
License
TypeScript (100%)
Total Downloads
9,657
Last Day
3
Last Week
10
Last Month
46
Last Year
447
5 Stars
18 Commits
2 Forks
2 Watching
1 Branches
1 Contributors
Latest Version
2.2.4
Package Id
ng2-youtube-player-mini@2.2.4
Size
3.56 kB
NPM Version
3.10.8
Node Version
6.7.0
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
-63%
10
Compared to previous week
Last month
58.6%
46
Compared to previous month
Last year
-37.7%
447
Compared to previous year
Angular 2 lightweight wrapper for Youtube player - AoT ready
1npm install ng2-youtube-player-mini --save
In systemjs.config.js:
1System.config({ 2 paths: { 3 // paths serve as alias 4 'npm:': 'node_modules/' 5 }, 6 map: { 7 //add line 8 'ng2-youtube-player-mini': 'npm:ng2-youtube-player-mini' 9 }, 10 // packages tells the System loader how to load when no filename and/or no extension 11 packages: { 12 //add line 13 'ng2-youtube-player-mini': { defaultExtension: 'js' },
In app.module
1import { YoutubePlayerMiniModule } from 'ng2-youtube-player-mini' 2... 3imports:[YoutubePlayerMiniModule]
in Component
1import {Component} from '@angular/core'; 2 3@Component({ 4 template: ` 5 <youtube-player [playerId]='"player"' [width]="640" [height]="480" [videoId]='"vntAEVjPBzQ"'> </youtube-player> 6 `, 7}) 8 9class App { 10 11}
for Playlist, you can specify a playlistId:
1<youtube-player [playerId]='"player"' [width]="640" [height]="480" [videoId]='' [playlistId]='"PLy_wKxVmWb4ZrduWMNXPWmBBImCAMqHV4"' > </youtube-player>
the videoId is then the id of the video where you want the playlist to start.
You can also pass an http type link to videoId.
videoId is considered Safe. Ensure these values are not provided by an unknown source.
This project is licensed under the MIT license. See the LICENSE file for more info.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/18 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
Score
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