Gathering detailed insights and metrics for call-me-maybe
Gathering detailed insights and metrics for call-me-maybe
Gathering detailed insights and metrics for call-me-maybe
Gathering detailed insights and metrics for call-me-maybe
Let your JS API users either give you a callback or receive a promise
npm install call-me-maybe
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
39 Stars
25 Commits
4 Forks
3 Watching
3 Branches
2 Contributors
Updated on 29 Apr 2024
JavaScript (98.4%)
Shell (1.6%)
Cumulative downloads
Total Downloads
Last day
-22.9%
1,152,037
Compared to previous day
Last week
-6.1%
7,551,821
Compared to previous week
Last month
7.2%
32,965,318
Compared to previous month
Last year
-15.3%
355,655,129
Compared to previous year
Let your JS API users either give you a callback or receive a promise.
1var maybe = require("call-me-maybe") 2 3module.exports = function asyncFunc (cb) { 4 return maybe(cb, new Promise(function(resolve, reject) { 5 // ... 6 })) 7}
If the callback cb
is truthy, returns undefined
and will call cb
when promise
is settled. The parameters passed to cb
are standard error-first:
promise
is fulfilled, then it is called with the result of the promise: cb(null, result)
promise
is rejected, then it is called with the rejection error: cb(err)
If cb
is falsey, then promise
is returned.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
32 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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