Gathering detailed insights and metrics for @ngx-extensions/screenfull
Gathering detailed insights and metrics for @ngx-extensions/screenfull
Gathering detailed insights and metrics for @ngx-extensions/screenfull
Gathering detailed insights and metrics for @ngx-extensions/screenfull
npm install @ngx-extensions/screenfull
Typescript
Module System
Node Version
NPM Version
59.8
Supply Chain
90.1
Quality
75.3
Maintenance
100
Vulnerability
99.3
License
TypeScript (88.52%)
JavaScript (6.77%)
Shell (2.82%)
HTML (1.8%)
CSS (0.09%)
Total Downloads
43,605
Last Day
1
Last Week
16
Last Month
117
Last Year
2,631
9 Stars
104 Commits
3 Forks
1 Watching
25 Branches
2 Contributors
Latest Version
0.1.0
Package Id
@ngx-extensions/screenfull@0.1.0
Unpacked Size
132.75 kB
Size
46.17 kB
File Count
39
NPM Version
5.10.0
Node Version
8.11.1
Cumulative downloads
Total Downloads
Last day
-87.5%
1
Compared to previous day
Last week
-59%
16
Compared to previous week
Last month
-17.6%
117
Compared to previous month
Last year
-62.1%
2,631
Compared to previous year
2
1
A simple wrapper around screenfull.js for Angular.
1npm install @ngx-extensions/screenfull
Import NgxScreenfullModule
into your module
1import { NgxScreenfullModule } from '@ngx-extensions/screenfull'; 2 3@NgModule({ 4 imports: [NgxScreenfullModule] 5}) 6export class AppModule {}
The most basic use case is to toggle the fullscreen mode through an element´s click event:
1<button ngxToggleFullscreen>Toggle fullscreen</button>
Note: the host element of ngxToggleFullscreen
does not necessarily have to be a <button>
The state of the fullscreen mode can be tracked through the ScreenfullService
1import { ScreenfullService } from '@ngx-extensions/screenfull'; 2import { Observable } from 'rxjs'; 3import { map } from 'rxjs/operators'; 4 5@Component({ 6 template: ` 7 <span>Screenfull mode is currently {{ mode$ | async }}</span> 8 ` 9}) 10export class DemoComponent { 11 readonly mode$: Observable<string>; 12 13 constructor(public readonly screenfullService: ScreenfullService) { 14 this.mode$ = this.screenfullService.fullScreenActive$.pipe( 15 map(active => (active ? 'active' : 'inactive')) 16 ); 17 } 18}
To interact with the fullscreen API, use the ScreenfullService
:
1import { ScreenfullService } from '@ngx-extensions/screenfull'; 2import { Observable } from 'rxjs'; 3import { map } from 'rxjs/operators'; 4 5@Component({ 6 template: ` 7 <button (click)="screenfullService.request()">Enter fullscreen</button> 8 <button (click)="screenfullService.exit()">Exit fullscreen</button> 9 <button (click)="screenfullService.toggle()">Toggle fullscreen</button> 10 <span>Screenfull mode is currently: {{ mode$ | async }}</span> 11 ` 12}) 13export class DemoComponent { 14 readonly mode$: Observable<string>; 15 16 constructor(public readonly screenfullService: ScreenfullService) { 17 this.mode$ = this.screenfullService.fullScreenActive$.pipe( 18 map(active => (active ? 'active' : 'inactive')) 19 ); 20 } 21}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/15 approved changesets -- score normalized to 0
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
140 existing vulnerabilities detected
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