Gathering detailed insights and metrics for vtry
Gathering detailed insights and metrics for vtry
Gathering detailed insights and metrics for vtry
Gathering detailed insights and metrics for vtry
npm install vtry
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
14 Commits
2 Watching
1 Branches
1 Contributors
Updated on 04 Apr 2022
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-40%
27
Compared to previous day
Last week
18.2%
286
Compared to previous week
Last month
-17.7%
883
Compared to previous month
Last year
4.3%
13,466
Compared to previous year
6
tryit + verror = Verbosely try.
This module exports one function that can be called in several ways described below. In each case,
f
is the original function that might throw.g
is a proxy function that wraps f
, preserving context (this
)
and arguments. If no error is thrown, it forwards the result.Errors are silently ignored.
In case of an error, return hnd(err, ...args)
.
Decorate potentially-cryptic errors with an error message errMsg
that
ideally describes what operation you were trying to perform.
errMsg
must be either a non-empty string or an array.
It will be used as the sprintf_args
to VError
.
errOpt
are the options
as described in VError
.
There's also a method vtry.pr
("Promise") which works almost as above,
except it takes an async function f
and returns an async function g
.
As a special convenience, supplying 1
(the number) as f
is a shorthand
for the identity function, so you can easily pass existing promises to g
.
ISC
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
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