Gathering detailed insights and metrics for cousin-harris
Gathering detailed insights and metrics for cousin-harris
Gathering detailed insights and metrics for cousin-harris
Gathering detailed insights and metrics for cousin-harris
npm install cousin-harris
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
11 Commits
1 Watchers
14 Branches
2 Contributors
Updated on May 26, 2023
Latest Version
3.0.1
Package Id
cousin-harris@3.0.1
Unpacked Size
27.94 kB
Size
7.57 kB
File Count
16
NPM Version
6.14.10
Node Version
14.15.4
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
1import cousinHarris from 'cousin-harris' 2import delay from 'delay' 3 4const roots = ['dir1', 'dir2'] 5const watcher = cousinHarris( 6 roots, 7 ({ root, path, removal, isDirectory }) => { 8 console.log( 9 '%s %s at root %s was %s', 10 isDirectory ? 'directory' : 'file', 11 path, 12 root, 13 removal ? 'removed' : 'changed', 14 ) 15 }, 16 { watchProject: true }, 17) 18 19// wait for all watches to be initialised 20await watcher.waitForWatches 21 22// add more watches after a second 23await delay(1000) 24await watcher.addRoot('dir3') 25await watcher.waitForWatches 26 27// stop watching one second after setting up watch for 'dir3' 28await delay(1000) 29await watcher.stop()
Without { watchProject: true }
watchman's watch
command is used instead of watch-project
.
The root
passed to the update function will be an absolute path, if it's important to receive the same root
as was passed then the result of fs.realPath
or equivalent should be passed to cousinHarris
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/10 approved changesets -- score normalized to 0
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
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities 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