tiny-glob
tiny-glob copied to clipboard
Super tiny and ~350% faster alternative to node-glob
It is not clear from the REAME if this library supports `**` in matching patterns. That feature is extremely important for some use cases because `foo/*/*.yml` is expected to match...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
The `CACHE` object is used to remember whether a path was a directory or not across `glob()` calls. Previously, this cache was keyed by the relative path of the file...
Currently, `tiny-glob` takes a single glob string. It would be nice if it could also take an array of glob strings, where negations apply to previous items in the array....
Is it possible to execute tiny-glob synchronously? My specific use case is in a rollup.config.js file, I need to execute tiny-glob to retrieve a list of file paths, and then...
Using `!(node_modules)/**/package.json` still seems to search within `node_modules`...or at least its still very slow compared to every other library I'm testing.
Usually and as per the documentation, input globs use forward slashes and the result paths use the native file separator. But here are examples of globs on Windows which return...
Reproduction: Create the following file structure: ``` a/ b/ c.txt ``` And run the following testcases inside the `a/` folder: ```js glob('../a/*') //=> ['../a/b', 'c.txt'] glob('b/../*') //=> ['b', 'c.txt'] glob('/absolute/path/to/a/*')...
```js const glob = require( "tiny-glob/sync" ); const files = glob( "{*,reporter-html/*}.html", { cwd: __dirname + "/../", filesOnly: true } ) ``` With an input like: * a.html * reporter-html/b.html...