Installations
npm install ngx-online-status
Developer Guide
Typescript
No
Module System
CommonJS, ESM
Node Version
18.1.0
NPM Version
8.8.0
Score
77.1
Supply Chain
90.9
Quality
75.5
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (80.05%)
JavaScript (9.99%)
HTML (7.53%)
SCSS (2.43%)
Developer
Download Statistics
Total Downloads
297,211
Last Day
547
Last Week
2,358
Last Month
12,262
Last Year
143,568
GitHub Statistics
22 Stars
137 Commits
4 Forks
2 Watching
2 Branches
1 Contributors
Bundle Size
2.06 kB
Minified
721.00 B
Minified + Gzipped
Package Meta Information
Latest Version
2.0.0
Package Id
ngx-online-status@2.0.0
Unpacked Size
30.88 kB
Size
7.03 kB
File Count
19
NPM Version
8.8.0
Node Version
18.1.0
Total Downloads
Cumulative downloads
Total Downloads
297,211
Last day
-4.4%
547
Compared to previous day
Last week
-25.8%
2,358
Compared to previous week
Last month
4.9%
12,262
Compared to previous month
Last year
39.5%
143,568
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
ngx-online-status
Detect online/offline state
Angular 5+ Module to track online and offline state
Demo
https://vadimdez.github.io/ngx-online-status/
or stackblitz code/demo
https://stackblitz.com/edit/ngx-online-status
Install
npm install ngx-online-status --save
Usage
- Import
OnlineStatusModule
to your module
1import { OnlineStatusModule } from 'ngx-online-status'; 2 3@NgModule({ 4 declarations: [ 5 // ... 6 ], 7 imports: [ 8 OnlineStatusModule 9 ], 10 providers: [ 11 //... 12 ] 13})
- Inject
OnlineStatusService
and use it:
1import { OnlineStatusService, OnlineStatusType } from "ngx-online-status"; 2 3export class AppComponent { 4 status: OnlineStatusType = this.onlineStatusService.getStatus(); // get initial status 5 6 constructor(private onlineStatusService: OnlineStatusService) { 7 this.onlineStatusService.status.subscribe((status: OnlineStatusType) => { 8 // use status 9 this.status = status; 10 }); 11 } 12}
OnlineStatusType
OnlineStatusType.OFFLINE
equals to 0
OnlineStatusType.ONLINE
equals to 1
License
MIT © Vadym Yatsyuk
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/VadimDez/ngx-online-status/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/VadimDez/ngx-online-status/main.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:30
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 25 are checked with a SAST tool
Reason
34 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj
- Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc
Score
2.5
/10
Last Scanned on 2025-02-03
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 MoreOther packages similar to ngx-online-status
ngx-check-permission
Angular library which checks the permission status and returns the permission status for the following api's .push, midi, camera, microphone, speaker, device-info, background-fetch, background-sync, bluetooth, persistent-storage, ambient-light-sensor, acc
ngx-outside-click-handler
[![Dependency Status](https://david-dm.org/willmendesneto/ngx-outside-click-handler.svg)](https://david-dm.org/willmendesneto/ngx-outside-click-handler) [![npm](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-ou