Installations
npm install @xtwest/clear-require-cache
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 4.0.0
Node Version
7.4.0
NPM Version
4.0.5
Score
65.2
Supply Chain
84.5
Quality
74.6
Maintenance
50
Vulnerability
98.2
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
909
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Clear Require Cache
Watch files and clear them from require.cache
whenever changes are made.
Installation
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
Usage
Module
1const clearRequireCache = require( 'clear-require-cache' ); 2clearRequireCache( patterns, options );
CLI
Globally installed:
1clearcache [options] <pattern> [patterns...]
Locally installed:
1./node_modules/.bin/clearcache [options] <pattern> [patterns...]
Module Arguments
patterns
File glob patterns. See supported minimatch
patterns.
- Type:
String
,Array
- Required: true
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
.
- Type:
Object
- Required: false
options.quiet
Suppress all log messages.
- Type:
Boolean
- Default:
false
CLI
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'
TODO
- Describe some common use cases.
- Cross platform testing.
- Test suite.
- Travis CI
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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