{"name":"ignore-walk","version":"6.0.1","keywords":["ignorefile","ignore","file",".gitignore",".npmignore","glob"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"ignore-walk@6.0.1","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"homepage":"https://github.com/npm/ignore-walk#readme","bugs":{"url":"https://github.com/npm/ignore-walk/issues"},"tap":{"jobs":1,"after":"test/zz-cleanup.js","before":"test/00-setup.js","nyc-arg":["--exclude","tap-snapshots/**"],"timeout":600,"test-env":"LC_ALL=sk"},"dist":{"shasum":"f05e232992ebf25fef13613668fea99857e7e8cf","tarball":"http://registry-npm.ywwl.com/ignore-walk/download/ignore-walk-6.0.1.tgz","fileCount":4,"integrity":"sha512-/c8MxUAqpRccq+LyDOecwF+9KqajueJHh8fz7g3YqjMZt+NSfJzx05zrKiXwa2sKwFCzaiZ5qUVfRj0pmxixEA==","signatures":[{"sig":"MEQCIDWcv9ZzY8TYUUhAsIOuGJb4VsZ9fJjRvELjnXJkx+8xAiANV6lbRQ9N3q1HNyzKt5h/xLgAWLFMetqrFg5/1cuQDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4drWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpzuw/+KhHS2OLTcsfpEMuuKbv750rnU/FkXaJdW5eNatFjIGus3BZq\r\nEdVSTqFrxE4kauP+EpYZTkEWugX7qnSnquFJsXNT0OGbU+4jowyHqpaZWap/\r\nn3sY3s4KaDnAov9NdP+zQRW/ZSSQAEeZ6W8VtNAZNlm0HzMVkWlBv8Uk9Xpb\r\nH6QX4a4G5JUWjjyg89NLsxfULnJQPhQyaUkaexcdezLT5Q3/mqNCCcOTfP+R\r\nIng8D4I2X2Gh1I+yN1G0MEFnjQVvuEIa+BHYoXDxBlaloKZQuFb1BirXUVrH\r\nP5FWHEulnUaBydX37/w6hGBvU2tMzmb8h/eed8tK8C87LzpkWF/RIrSpBzU3\r\nMYvCatcDK8vRu6iVklag1nFr9/T7/EDM2Q20cl4sjMu9zZ8Uf1Wy4XbTN/e3\r\njEfT4Cizxg6AzvK9qEJ9TuYGAMl8eX2899BNnPyvKW/i9TSyyDFYsz88zqG4\r\nPo2zgHnXm3eAsQTR/LzO2EeH7YA8B0dZ+7VFi0IOUCgzxIN08oQk7DlGckyL\r\nm/FEaxISnWuXMDP8X1DMZ2HaBVHKiJaElv8/TjSOPRYZkez0XphAQKfDIu2R\r\n0eniDL56I0RWf97yqA8hFHcDbmRkgoKHi1+lGPXOLzaWkUM1VodIPFNT3X39\r\nnPtOyTcUEHdp80xs5NvtiTIsEv7TJnRWs9U=\r\n=CZhB\r\n-----END PGP SIGNATURE-----\r\n","size":4639,"noattachment":false,"key":"/ignore-walk/-/ignore-walk-6.0.1.tgz"},"main":"lib/index.js","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"gitHead":"d30e292615c1920203a44f35f084c28acd7727e8","scripts":{"lint":"eslint \"**/*.js\"","snap":"tap","test":"tap","eslint":"eslint","lintfix":"npm run lint -- --fix","postlint":"template-oss-check","postsnap":"npm run lintfix --","posttest":"npm run lint","npmclilint":"npmcli-lint","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"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"repository":{"url":"git+https://github.com/npm/ignore-walk.git","type":"git"},"_npmVersion":"9.4.0","description":"Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.","directories":{},"templateOSS":{"content":"scripts/template-oss","version":"4.11.3","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"19.4.0","dependencies":{"minimatch":"^6.1.6"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","mkdirp":"^1.0.4","rimraf":"^3.0.2","mutate-fs":"^2.1.1","@npmcli/template-oss":"4.11.3","@npmcli/eslint-config":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ignore-walk_6.0.1_1675746006025_0.6782511856375972","host":"s3://npm-registry-packages"},"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":1675746006195,"_cnpm_publish_time":1675746006195,"dist-tags":{"latest":"9.0.1"}}