Gathering detailed insights and metrics for @xtwest/clear-require-cache
Gathering detailed insights and metrics for @xtwest/clear-require-cache
Gathering detailed insights and metrics for @xtwest/clear-require-cache
Gathering detailed insights and metrics for @xtwest/clear-require-cache
npm install @xtwest/clear-require-cache
Typescript
Module System
Min. Node Version
Node Version
NPM Version
65.2
Supply Chain
84.5
Quality
74.6
Maintenance
50
Vulnerability
98.2
License
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
175%
22
Compared to previous month
Last year
59.8%
187
Compared to previous year
Watch files and clear them from require.cache
whenever changes are made.
Install locally:
$ npm install sapientnitrola/clear-require-cache --save-dev
Install globally to have clearcache
available in your path:
$ npm install sapientnitrola/clear-require-cache -g
1const clearRequireCache = require( 'clear-require-cache' ); 2clearRequireCache( patterns, options );
Globally installed:
1clearcache [options] <pattern> [patterns...]
Locally installed:
1./node_modules/.bin/clearcache [options] <pattern> [patterns...]
patterns
File glob patterns. See supported minimatch
patterns.
String
, Array
Example:
1const clearRequireCache = require( 'clear-require-cache' ); 2clearRequireCache( '**/*.js' );
Note: The node_modules
directory is ignored by default.
options
Defaults to the options supported by chokidar
. This object is passed directly to chokidar
, but not all options will be relavent to the scope of clear-require-cache
.
Object
options.quiet
Suppress all log messages.
Boolean
false
1Usage: clearcache [options] <pattern> [patterns...] 2 3Multiple glob patterns can passed as a space delimited list. 4To prevent shell globbing, wrap each pattern in quotes. 5Glob primer: https://github.com/isaacs/node-glob#glob-primer 6 7Options: 8 9 -h, --help output usage information 10 -V, --version output the version number 11 -q, --quiet Suppress all log messages. 12 13 14Examples: 15 16 Watch all files with '.js' extension 17 $ clearcache '**/*.js' 18 19 Watch all files with '.js' extension, except ones in the "tests" directory 20 $ clearcache '**/*.js' '!tests/*.js'
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
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
Found 0/30 approved changesets -- 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
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-20
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