{"name":"ignore-walk","version":"7.0.0","description":"Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.","main":"lib/index.js","devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.3","mutate-fs":"^2.1.1","tap":"^16.0.1"},"scripts":{"test":"tap","posttest":"npm run lint","lint":"npm run eslint","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","test:windows-coverage":"npm pkg set tap.statements=99 --json && npm pkg set tap.branches=98 --json && npm pkg set tap.lines=99 --json","snap":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"keywords":["ignorefile","ignore","file",".gitignore",".npmignore","glob"],"author":{"name":"GitHub Inc."},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/ignore-walk.git"},"dependencies":{"minimatch":"^9.0.0"},"tap":{"test-env":"LC_ALL=sk","before":"test/00-setup.js","after":"test/zz-cleanup.js","timeout":600,"jobs":1,"nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":"^18.17.0 || >=20.5.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.3","content":"scripts/template-oss","publish":"true"},"_id":"ignore-walk@7.0.0","gitHead":"229fc711c3699f0212400145d45f8c4a36034d51","bugs":{"url":"https://github.com/npm/ignore-walk/issues"},"homepage":"https://github.com/npm/ignore-walk#readme","_nodeVersion":"22.8.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-T4gbf83A4NH95zvhVYZc+qWocBBGlpzUXLPGurJggw/WIOwicfXJChLDP/iBZnN5WqROSu5Bm3hhle4z8a8YGQ==","shasum":"8350e475cf4375969c12eb49618b3fd9cca6704f","tarball":"http://registry-npm.ywwl.com/ignore-walk/download/ignore-walk-7.0.0.tgz","fileCount":4,"unpackedSize":13238,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/ignore-walk@7.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC35XGLDAxDpMNQaJ7ohvpowM1e6LD2e7OOLxiKF018IAiAIKdI4DgMkcExGvV2+Ilp903fQXY8+Msx9UYJ45tBHGw=="}],"size":4815,"noattachment":false,"key":"/ignore-walk/-/ignore-walk-7.0.0.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ignore-walk_7.0.0_1725486563874_0.3344319358696526"},"_hasShrinkwrap":false,"readme":"# ignore-walk\n\nNested/recursive `.gitignore`/`.npmignore` parsing and filtering.\n\nWalk a directory creating a list of entries, parsing any `.ignore`\nfiles met along the way to exclude files.\n\n## USAGE\n\n```javascript\nconst walk = require('ignore-walk')\n\n// All options are optional, defaults provided.\n\n// this function returns a promise, but you can also pass a cb\n// if you like that approach better.\nwalk({\n  path: '...', // root dir to start in. defaults to process.cwd()\n  ignoreFiles: [ '.gitignore' ], // list of filenames. defaults to ['.ignore']\n  includeEmpty: true|false, // true to include empty dirs, default false\n  follow: true|false // true to follow symlink dirs, default false\n}, callback)\n\n// to walk synchronously, do it this way:\nconst result = walk.sync({ path: '/wow/such/filepath' })\n```\n\nIf you want to get at the underlying classes, they're at `walk.Walker`\nand `walk.WalkerSync`.\n\n## OPTIONS\n\n* `path` The path to start in.  Defaults to `process.cwd()`\n\n* `ignoreFiles` Filenames to treat as ignore files.  The default is\n  `['.ignore']`.  (This is where you'd put `.gitignore` or\n  `.npmignore` or whatever.)  If multiple ignore files are in a\n  directory, then rules from each are applied in the order that the\n  files are listed.\n\n* `includeEmpty` Set to `true` to include empty directories, assuming\n  they are not excluded by any of the ignore rules.  If not set, then\n  this follows the standard `git` behavior of not including\n  directories that are empty.\n\n    Note: this will cause an empty directory to be included if it\n    would contain an included entry, even if it would have otherwise\n    been excluded itself.\n\n    For example, given the rules `*` (ignore everything) and `!/a/b/c`\n    (re-include the entry at `/a/b/c`), the directory `/a/b` will be\n    included if it is empty.\n\n* `follow`  Set to `true` to treat symbolically linked directories as\n  directories, recursing into them.  There is no handling for nested\n  symlinks, so `ELOOP` errors can occur in some cases when using this\n  option.  Defaults to `false`.\n","publish_time":1725486564022,"maintainers":[{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"name":"gar","email":"gar+npm@danger.computer"}],"_cnpm_publish_time":1725486564022,"dist-tags":{"latest":"9.0.1"}}