Installations
npm install @jawis/use-websocket
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
14.17.0
NPM Version
6.14.13
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (96.19%)
JavaScript (3.32%)
CSS (0.43%)
EJS (0.04%)
HTML (0.02%)
Developer
wistoft
Download Statistics
Total Downloads
222
Last Day
2
Last Week
3
Last Month
8
Last Year
53
GitHub Statistics
1 Stars
158 Commits
1 Watching
1 Branches
1 Contributors
Bundle Size
63.65 kB
Minified
17.34 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.0.1
Package Id
@jawis/use-websocket@0.0.1
Unpacked Size
11.96 kB
Size
4.00 kB
File Count
13
NPM Version
6.14.13
Node Version
14.17.0
Total Downloads
Cumulative downloads
Total Downloads
222
Last day
0%
2
Compared to previous day
Last week
50%
3
Compared to previous week
Last month
166.7%
8
Compared to previous month
Last year
-30.3%
53
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
useWebsocket
React hook to open/close a websocket connection when a component mounts/unmounts.
Installation
npm i use-websocket
Usage
Known issues
Related work
License
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENCE:0
- Info: FSF or OSI recognized license: MIT License: LICENCE:0
Reason
no binaries found in the repo
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:14
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:13
- Warn: no topLevel permission defined: .github/workflows/codeql.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yml:6
- Info: no jobLevel write permissions found
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 21 commits out of 22 are checked with a SAST tool
Reason
2 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
1 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
- 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
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/wistoft/jawis/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/wistoft/jawis/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/wistoft/jawis/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/wistoft/jawis/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/wistoft/jawis/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/wistoft/jawis/test.yml/main?enable=pin
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
5.1
/10
Last Scanned on 2025-01-27
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