
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
ngx-nightmode
Advanced tools
A library for adding night-mode to your Angular 9 app.
ngx-darkmode
?Navigate to your project's folder and run the following command:
$ npm install --save ngx-darkmode
Next, import NgxNightmodeModule
and add it to the imports
array f your app:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { NgxNightmodeModule } from 'ngx-nightmode';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxNightmodeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
import { Component , OnInit } from '@angular/core';
import { NgxNightmodeService , WidgetOptions } from 'ngx-nightmode';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'demo';
constructor(public nightmodeService: NgxNightmodeService){
}
ngOnInit(): void {
var opts: WidgetOptions = {
bottom: '64px', // default: '32px'
right: 'unset', // default: '32px'
left: '32px', // default: 'unset'
time: '0.5s', // default: '0.3s'
mixColor: '#fff', // default: '#fff'
backgroundColor: '#fff', // default: '#fff'
buttonColorDark: '#100f2c', // default: '#100f2c'
buttonColorLight: '#fff', // default: '#fff'
saveInCookies: false, // default: true,
label: '🌓', // default: ''
autoMatchOsTheme: true // default: true
}
this.nightmodeService.showWidget(opts);
}
}
FAQs
A library for adding night-mode to your Angular 9 app.
The npm package ngx-nightmode receives a total of 0 weekly downloads. As such, ngx-nightmode popularity was classified as not popular.
We found that ngx-nightmode demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.