{"repo":"sindresorhus/globby","free":true,"listed":false,"github":"https://github.com/sindresorhus/globby","clone":"git clone https://github.com/sindresorhus/globby.git","description":"User-friendly glob matching","language":"JavaScript","stars":2649,"topics":["javascript","glob","nodejs","patterns","matching","files","directories","globbing"],"license":"MIT","category":"dev-tools","readme_excerpt":"globby User-friendly glob matching Based on fast-glob but adds a bunch of useful features. Features - Promise API - Multiple patterns - Negated patterns: ['foo ', '!foobar'] - Negation-only patterns: ['!foobar'] → matches all files except foobar - Expands directories: foo → foo/ / - Supports .gitignore and similar ignore config files - Supports URL as cwd Install Usage API Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use path.posix.join() instead of path.join() . Windows: Patterns with backslashes will silently fail. Use path.posix.join() or convertPathToPattern() . globby(patterns, options?) Returns a Promise of matching paths. patterns Type: string string[] See supported minimatch patterns. options Type: object See the fast-glob options in addition to the ones below. expandDirectories Type: boolean string[] object \\ Default: true If set to true , globby will automatically glob directories for you. If you define an Array it will only glob files that matches the patterns inside the Array . You can also define an object with files and extensions like below: Note that if you set this option to false , you won't get back matched directories unless you set onlyFiles: false . gitignore Type: boolean \\ Default: false Respect ignore patterns in .gitignore files that apply to the globbed files. When enabled, globby searches for .gitignore files from the current working dire","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/globby/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}