
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@hercilio/ngx-youtube-player
Advanced tools
[](https://travis-ci.org/Hernior/ngx-youtube-player) [](https://badge.fury.io/js/ngx-youtube-player) [![npm d
This is an Angular component based on youtube player iframe api. This component came out as a result of the open source project Echoes Player - an alternative player for watching and listening to media from youtube. Original project: https://github.com/Hernior/ngx-youtube-player
Compatible with Angular v14 or later, versions follow Angular's version to easily reflect compatibility. Starting with Angular v14.2.5.
This fork project is free to use, released under MIT license.
npm install @hercilio/ngx-youtube-player
Currently supported attributes:
First, import the YoutubePlayerModule to your module:
import { NgxYoutubePlayerModule } from 'ngx-youtube-player';
...
@NgModule({
...
imports: [..., NgxYoutubePlayerModule.forRoot()],
...
})
export class AppModule {}
Next, use the youtube-player component. A Unique Id will be created for this player's instance:
import { Component } from "@angular/core";
@Component({
selector: "app",
template: `
<youtube-player
[videoId]="id"
(ready)="savePlayer($event)"
(change)="onStateChange($event)"
></youtube-player>
`,
})
export class AppComponent {
player: YT.Player;
private id: string = "L-odCf4MfJc";
savePlayer(player) {
this.player = player;
console.log("player instance", player);
}
onStateChange(event) {
console.log("player state", event.data);
}
}
FAQs
[](https://travis-ci.org/Hernior/ngx-youtube-player) [](https://badge.fury.io/js/ngx-youtube-player) [![npm d
The npm package @hercilio/ngx-youtube-player receives a total of 116 weekly downloads. As such, @hercilio/ngx-youtube-player popularity was classified as not popular.
We found that @hercilio/ngx-youtube-player demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.