Gathering detailed insights and metrics for revertable-globals
Gathering detailed insights and metrics for revertable-globals
Gathering detailed insights and metrics for revertable-globals
Gathering detailed insights and metrics for revertable-globals
Sets globals in a JavaScript environment that can be easily reverted to restore the original environment; useful for testing code that relies on the presence of certain globals.
npm install revertable-globals
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
41 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Mar 10, 2023
Latest Version
4.0.0
Package Id
revertable-globals@4.0.0
Unpacked Size
4.80 kB
Size
1.84 kB
File Count
3
NPM Version
8.15.0
Node Version
18.7.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Sets globals in a JavaScript environment that can be easily reverted to restore the original environment; useful for testing code that relies on the presence of certain globals.
For Node.js, to install revertable-globals
with npm, run:
1npm install revertable-globals --save-dev
For Deno, an example import map:
1{ 2 "imports": { 3 "revertable-globals": "https://unpkg.com/revertable-globals@4.0.0/revertableGlobals.mjs" 4 } 5}
Then, import and use the function revertableGlobals
.
Supported runtime environments:
Non Deno projects must configure TypeScript to use types from the ECMAScript modules that have a // @ts-check
comment:
compilerOptions.allowJs
should be true
.compilerOptions.maxNodeModuleJsDepth
should be reasonably large, e.g. 10
.compilerOptions.module
should be "node16"
or "nodenext"
.The npm package revertable-globals
features optimal JavaScript module design. These ECMAScript modules are exported via the package.json
field exports
:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Score
Last Scanned on 2025-07-07
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