Gathering detailed insights and metrics for ignore-walk
Gathering detailed insights and metrics for ignore-walk
Gathering detailed insights and metrics for ignore-walk
Gathering detailed insights and metrics for ignore-walk
@types/ignore-walk
TypeScript definitions for ignore-walk
@serverless-devs/ignore-walk
ignore-walk for serverless-devs
@geek/ignore-walk
Tweaked edition of ignore-walk. Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.
@pucelle/ignore-walk
Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.
Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.
npm install ignore-walk
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99
Supply Chain
84.8
Quality
83.6
Maintenance
100
Vulnerability
100
License
JavaScript (99.41%)
Handlebars (0.59%)
Total Downloads
2,312,493,433
Last Day
1,837,347
Last Week
8,247,266
Last Month
36,783,270
Last Year
490,424,301
59 Stars
144 Commits
9 Forks
13 Watching
3 Branches
75 Contributors
Minified
Minified + Gzipped
Latest Version
7.0.0
Package Id
ignore-walk@7.0.0
Unpacked Size
12.93 kB
Size
4.70 kB
File Count
4
NPM Version
10.8.3
Node Version
22.8.0
Publised On
04 Sept 2024
Cumulative downloads
Total Downloads
Last day
-2.8%
1,837,347
Compared to previous day
Last week
-13.7%
8,247,266
Compared to previous week
Last month
3.1%
36,783,270
Compared to previous month
Last year
16.7%
490,424,301
Compared to previous year
1
4
Nested/recursive .gitignore
/.npmignore
parsing and filtering.
Walk a directory creating a list of entries, parsing any .ignore
files met along the way to exclude files.
1const walk = require('ignore-walk') 2 3// All options are optional, defaults provided. 4 5// this function returns a promise, but you can also pass a cb 6// if you like that approach better. 7walk({ 8 path: '...', // root dir to start in. defaults to process.cwd() 9 ignoreFiles: [ '.gitignore' ], // list of filenames. defaults to ['.ignore'] 10 includeEmpty: true|false, // true to include empty dirs, default false 11 follow: true|false // true to follow symlink dirs, default false 12}, callback) 13 14// to walk synchronously, do it this way: 15const result = walk.sync({ path: '/wow/such/filepath' })
If you want to get at the underlying classes, they're at walk.Walker
and walk.WalkerSync
.
path
The path to start in. Defaults to process.cwd()
ignoreFiles
Filenames to treat as ignore files. The default is
['.ignore']
. (This is where you'd put .gitignore
or
.npmignore
or whatever.) If multiple ignore files are in a
directory, then rules from each are applied in the order that the
files are listed.
includeEmpty
Set to true
to include empty directories, assuming
they are not excluded by any of the ignore rules. If not set, then
this follows the standard git
behavior of not including
directories that are empty.
Note: this will cause an empty directory to be included if it would contain an included entry, even if it would have otherwise been excluded itself.
For example, given the rules *
(ignore everything) and !/a/b/c
(re-include the entry at /a/b/c
), the directory /a/b
will be
included if it is empty.
follow
Set to true
to treat symbolically linked directories as
directories, recursing into them. There is no handling for nested
symlinks, so ELOOP
errors can occur in some cases when using this
option. Defaults to false
.
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 3/5 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-01-27
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