{"name":"tiny-glob","version":"0.2.7","description":"Tiny and extremely fast globbing","main":"src/index.js","scripts":{"bench":"node bench","test":"tape test/*.js | tap-spec"},"author":{"name":"Terkel Gjervig","email":"terkel@terkel.com","url":"https://terkel.com"},"keywords":["glob","globbing","patterns","wildcard","pattern-matching","expansion"],"repository":{"type":"git","url":"git+https://github.com/terkelg/tiny-glob.git"},"license":"MIT","dependencies":{"globalyzer":"0.1.0","globrex":"^0.1.2"},"devDependencies":{"tap-spec":"^5.0.0","tape":"^5.0.1"},"types":"./index.d.ts","gitHead":"1c85efbdbe074dae7d1017534c40033f7f2d9f33","bugs":{"url":"https://github.com/terkelg/tiny-glob/issues"},"homepage":"https://github.com/terkelg/tiny-glob#readme","_id":"tiny-glob@0.2.7","_nodeVersion":"13.7.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NloalMIlkFJLVzc9NeBfnm/jef8WbK0m6HpPKPjIcBjmwk2OTE/r4r1najAFvtk21uEGSfOgps9Ow4QDYLVVJA==","shasum":"f9a03cd9e5c73e32d49c96060b2b0493de292693","tarball":"http://registry-npm.ywwl.com/tiny-glob/download/tiny-glob-0.2.7.tgz","fileCount":7,"unpackedSize":12318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJft9fVCRA9TVsSAnZWagAAbZQP/jctoGgLdBhxRrqWTNFm\nUloMWIMgdyl0HfMZcf0KxQnUuJjTzajQShmiKyBJoIikSSI1KBO9DMEY2j4X\n/2GWjg2K3jT3/S/S0cMmSKQrj0kIyC26frZUga3gWgHXVTW3Qud53nyoor8y\nIH6bexZox6qsxcMfN/8ciRo7A6CXImwJMQrucjgbJxOK237ZgW++q2eCgaMu\nyZSmfWp4ctO8ficlYv9wP3gtc0nAbbHEHOMY6+MMi6Q2XZ52BHrH00jwEAB/\nHlsmjkLcuobrUKTv4XQ6x9puEpQMVR6qCcxY/WQcqXMQMd6lbVx2SONLMdOj\n+VGvMnpdSwjC2zl+68Mz0zziOd9RqujVLby6e0Y29ls08bLBSdx+t7v0WVhq\n4VS5Y1cdaK0CZzNlthgsqdllgLBG8NEjXzwC1aKADHFnIcmespZqX3nXQO6p\nSMyGRDtv69WFWfwpcOEouIG0SR6uo38FFvNBDjVHTEOEHRj6qC350bSwimt8\nc/nC2SZDCeEVh2EAqKCwTY8x34YxDfzKvzedNkgO9gLaHKxW9HCdzhqH3NWd\nBv9dEHKnG1iooTEIljgoaJrR/LD7RJsa//uu1eSFZp4X/eMlgTq0v/lK5Lio\nkOh6Ky13mFay2UhZxYoSYe69UxEAkQOo65FIb347f9+/iemPUiK9KbqnMjcy\nwXLT\r\n=EXbT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV8X3lZxBYjFxN/8PDbir7PCRdJ2R8PsmR7XmG69uMfwIhAIy8+VQX4W6rRHtNoUGpP8u1U0X6eXtX38u/csOvsUDG"}],"size":4177,"noattachment":false,"key":"/tiny-glob/-/tiny-glob-0.2.7.tgz"},"_npmUser":{"name":"terkelg","email":"terkel@terkel.com"},"directories":{},"maintainers":[{"name":"terkelg","email":"terkel@terkel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-glob_0.2.7_1605883861243_0.9990314503842748"},"_hasShrinkwrap":false,"readme":"<p align=\"center\">\n  <img src=\"https://github.com/terkelg/tiny-glob/raw/master/tiny-glob.png\" alt=\"Tiny Glob\" width=\"450\" />\n</p>\n\n<h1 align=\"center\">tiny glob</h1>\n\n<p align=\"center\">\n  <a href=\"https://npmjs.org/package/tiny-glob\">\n    <img src=\"https://img.shields.io/npm/v/tiny-glob.svg\" alt=\"version\" />\n  </a>\n  <a href=\"https://github.com/terkelg/tiny-glob/actions\">\n    <img src=\"https://github.com/terkelg/tiny-glob/actions/workflows/ci.yml/badge.svg\" alt=\"CI\" />\n  </a>\n  <a href=\"https://npmjs.org/package/tiny-glob\">\n    <img src=\"https://img.shields.io/npm/dm/tiny-glob.svg\" alt=\"downloads\" />\n  </a>\n  <a href=\"https://packagephobia.now.sh/result?p=tiny-glob\">\n    <img src=\"https://packagephobia.now.sh/badge?p=tiny-glob\" alt=\"install size\" />\n  </a>\n</p>\n\n<p align=\"center\"><b>Tiny and extremely fast library to match files and folders using glob patterns.</b></p>\n\n<br />\n\n\n\"Globs\" is the common name for a specific type of pattern used to match files and folders. It's the patterns you type when you do stuff like `ls *.js` in your shell or put `src/*` in a `.gitignore` file. When used to match filenames, it's sometimes called a \"wildcard\".\n\n\n## Install\n\n```\nnpm install tiny-glob\n```\n\n\n## Core Features\n\n- 🔥 **extremely fast:** ~350% faster than [node-glob](https://github.com/isaacs/node-glob) and ~230% faster than [fast-glob](https://github.com/mrmlnc/fast-glob)\n- 💪 **powerful:** supports advanced globbing patterns (`ExtGlob`)\n- 📦 **tiny**: only ~45 LOC with 2 small dependencies\n- 👫 **friendly**: simple and easy to use api\n- 🎭 **cross-platform**: supports both unix and windows\n\n\n## Usage\n\n```js\nconst glob = require('tiny-glob');\n\n(async function(){\n    let files = await glob('src/*/*.{js,md}');\n    // => [ ... ] array of matching files\n})();\n```\n\n\n## API\n\n\n### glob(str, options)\n\nType: `function`<br>\nReturns: `Array`\n\nReturn array of matching files and folders\nThis function is `async` and returns a promise.\n\n#### str\n\nType: `String`\n\nThe glob pattern to match against.\n> **OBS**: Please only use forward-slashes in glob expressions. Even on [windows](#windows)\n\n#### options.cwd\n\nType: `String`<br>\nDefault: `'.'`\n\nChange default working directory.\n\n#### options.dot\n\nType: `Boolean`<br>\nDefault: `false`\n\nAllow patterns to match filenames or directories that begin with a period (`.`).\n\n#### options.absolute\n\nType: `Boolean`<br>\nDefault: `false`\n\nReturn matches as absolute paths.\n\n#### options.filesOnly\n\nType: `Boolean`<br>\nDefault: `false`\n\nSkip directories and return matched files only.\n\n#### options.flush\n\nType: `Boolean`<br>\nDefault: `false`\n\nFlush the internal cache object.\n\n\n## Windows\n\nThough Windows may use `/`, `\\`, or `\\\\` as path separators, you can **only** use forward-slashes (`/`) when specifying glob expressions. Any back-slashes (`\\`) will be interpreted as escape characters instead of path separators.\n\nThis is common across many glob-based modules; see [`node-glob`](https://github.com/isaacs/node-glob#windows) for corroboration.\n\n\n## Benchmarks\n\n```\nglob x 13,405 ops/sec ±1.80% (85 runs sampled)\nfast-glob x 25,745 ops/sec ±2.76% (59 runs sampled)\ntiny-glob x 102,658 ops/sec ±0.79% (91 runs sampled)\nFastest is tiny-glob\n┌───────────┬─────────────────────────┬─────────────┬────────────────┐\n│ Name      │ Mean time               │ Ops/sec     │ Diff           │\n├───────────┼─────────────────────────┼─────────────┼────────────────┤\n│ glob      │ 0.00007459990597268128  │ 13,404.843  │ N/A            │\n├───────────┼─────────────────────────┼─────────────┼────────────────┤\n│ fast-glob │ 0.000038842529587611705 │ 25,744.976  │ 92.06% faster  │\n├───────────┼─────────────────────────┼─────────────┼────────────────┤\n│ tiny-glob │ 0.00000974110141018254  │ 102,657.796 │ 298.75% faster │\n└───────────┴─────────────────────────┴─────────────┴────────────────┘\n```\n\n## Advanced Globbing\n\nLearn more about advanced globbing\n\n - [Greg's Wiki](https://mywiki.wooledge.org/glob)\n - [Bash Extended Globbing](https://www.linuxjournal.com/content/bash-extended-globbing)\n\n\n## License\n\nMIT © [Terkel Gjervig](https://terkel.com)\n","publish_time":1605883861418,"_cnpm_publish_time":1605883861418,"dist-tags":{"latest":"0.2.9"}}