Gathering detailed insights and metrics for @rpai/wdio-logger
Gathering detailed insights and metrics for @rpai/wdio-logger
Gathering detailed insights and metrics for @rpai/wdio-logger
Gathering detailed insights and metrics for @rpai/wdio-logger
Next-gen browser and mobile automation test framework for Node.js
npm install @rpai/wdio-logger
Typescript
Module System
Node Version
NPM Version
70.3
Supply Chain
89.9
Quality
78.5
Maintenance
100
Vulnerability
100
License
TypeScript (94.13%)
JavaScript (3.66%)
EJS (1.4%)
CSS (0.69%)
Gherkin (0.07%)
Dockerfile (0.03%)
Vue (0.01%)
Total Downloads
558
Last Day
1
Last Week
3
Last Month
20
Last Year
558
MIT License
9,497 Stars
7,982 Commits
2,584 Forks
213 Watchers
34 Branches
643 Contributors
Updated on May 25, 2025
Minified
Minified + Gzipped
Latest Version
1.0.3
Package Id
@rpai/wdio-logger@1.0.3
Unpacked Size
32.15 kB
Size
8.89 kB
File Count
14
NPM Version
10.7.0
Node Version
20.15.0
Published on
Sep 27, 2024
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-66.7%
3
Compared to previous week
Last Month
-9.1%
20
Compared to previous month
Last Year
0%
558
Compared to previous year
4
A helper utility for logging of WebdriverIO packages
This package is used across all WebdriverIO packages to log information using the loglevel
package. It can also be used for any other arbitrary Node.js project.
To install the package just call
1npm install @wdio/logger
or when adding it to a WebdriverIO subpackage:
1lerna add @wdio/logger --scope <subpackage>
The package exposes a logger function that you can use to register an instance for your scoped package:
1import logger from '@wdio/logger' 2 3const log = logger('myPackage') 4log.info('some logs')
For more info see loglevel
package on NPM.
This package extends the log levels available in loglevel
by introducing a new level called progress
.
The progress
level is particularly useful when you need to dynamically update a specific line in the terminal. For example, it can be utilized to display the download progress of browsers or drivers.
Notably, the progress
level is equivalent to the info
level. Therefore, if you set the log level to error
or silent
, any progress
logs will be suppressed.
It's important to mention that progress
writes directly to process.stdout
, and these logs won't be captured in any log files.
To ensure consistent formatting with subsequent logs while using progress
, it's essential to clear it at the end. To do so, simply call progress
with an empty string, which will clear the last line:
log.progress('')
1import logger from '@wdio/logger'; 2 3const log = logger('internal'); 4 5const totalSize = 100; 6let uploadedSize = 0; 7 8const uploadInterval = setInterval(() => { 9 const chunkSize = 10; 10 uploadedSize += chunkSize; 11 const data = `Progress: ${(uploadedSize * 100) / totalSize}%`; 12 log.progress(data); 13 if (uploadedSize >= totalSize) { 14 clearInterval(uploadInterval); 15 log.progress(''); // Called at the end to maintain the alignment of subsequent logs. 16 console.log('Upload complete.'); 17 } 18}, 100);
No vulnerabilities found.
Reason
30 commit(s) and 18 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 16/28 approved changesets -- score normalized to 5
Reason
badge detected: Passing
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
30 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-19
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