{"_id":"miniglob","_rev":"62669","name":"miniglob","description":"Minimal file globbing without dependencies; port of golang filepath","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"rsms","email":"rasmus@notion.se"}],"time":{"modified":"2021-06-03T10:21:14.000Z","created":"2018-07-22T01:55:01.721Z","0.1.2":"2020-12-19T20:10:03.956Z","0.1.1":"2018-07-22T23:47:24.626Z","0.1.0":"2018-07-22T01:55:01.721Z"},"users":{},"author":{"name":"rsms"},"repository":{"type":"git","url":"git+https://github.com/rsms/js-miniglob.git"},"versions":{"0.1.2":{"name":"miniglob","version":"0.1.2","description":"Minimal file globbing without dependencies; port of golang filepath","main":"miniglob.js","typings":"miniglob.d.ts","types":"miniglob.d.ts","author":{"name":"rsms"},"license":"MIT","scripts":{"build":"esbuild --bundle --platform=node --format=cjs --target=node10 --sourcemap src/miniglob.js --minify --outfile=miniglob.js","build-dev":"esbuild --bundle --platform=node --format=cjs --target=node10 --sourcemap src/miniglob.js --outfile=miniglob.g.js","test":"node test/test.js","prepublishOnly":"node test/test.js"},"engines":{"node":">=10.0.0"},"homepage":"https://github.com/rsms/js-miniglob#readme","repository":{"type":"git","url":"git+https://github.com/rsms/js-miniglob.git"},"keywords":["file","glob","pattern"],"devDependencies":{"esbuild":"<1.0.0"},"gitHead":"13eeb09ec552cb76bf6bf654a56e585149166717","bugs":{"url":"https://github.com/rsms/js-miniglob/issues"},"_id":"miniglob@0.1.2","_nodeVersion":"14.11.0","_npmVersion":"6.14.9","dist":{"shasum":"0b124575b26a843be498a51f7aa2bfb7951e50f9","size":11504,"noattachment":false,"key":"/miniglob/-/miniglob-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/miniglob/download/miniglob-0.1.2.tgz"},"_npmUser":{"name":"rsms","email":"rasmus@notion.se"},"directories":{},"maintainers":[{"name":"rsms","email":"rasmus@notion.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniglob_0.1.2_1608408603827_0.6304178085985255"},"_hasShrinkwrap":false,"publish_time":1608408603956,"_cnpm_publish_time":1608408603956},"0.1.1":{"name":"miniglob","version":"0.1.1","description":"Minimal file globbing without dependencies; port of golang filepath","main":"miniglob.js","typings":"miniglob.d.ts","author":{"name":"rsms"},"license":"MIT","files":["miniglob.d.ts","miniglob.js","miniglob.js.map","README.md","LICENSE","LICENSE-go"],"scripts":{"build":"rollup src/miniglob.js --file miniglob.g.js --format umd --name miniglob --sourcemap && uglifyjs --compress --mangle --ecma 7 -o miniglob.js --source-map content=miniglob.g.js.map,includeSources=false -- miniglob.g.js && node misc/fixup-sourcemap.js miniglob.js.map","build-w":"rollup src/miniglob.js --file miniglob.g.js --format umd --name miniglob --sourcemap --watch","test":"node test/test.js","prepublish":"node test/test.js"},"devDependencies":{"rollup":"^0.63.4","uglify-es":"^3.3.9"},"homepage":"https://github.com/rsms/js-miniglob#readme","repository":{"type":"git","url":"git+https://github.com/rsms/js-miniglob.git"},"keywords":["file","glob","pattern"],"gitHead":"ca4b7383cab8cdfa772532160b60aedd6266b3a9","bugs":{"url":"https://github.com/rsms/js-miniglob/issues"},"_id":"miniglob@0.1.1","_npmVersion":"6.2.0","_nodeVersion":"10.5.0","_npmUser":{"name":"rsms","email":"rasmus@notion.se"},"dist":{"shasum":"a4e395086b4f8c7f1fd8a4ffa46767e55ae5fd37","size":8033,"noattachment":false,"key":"/miniglob/-/miniglob-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/miniglob/download/miniglob-0.1.1.tgz"},"maintainers":[{"name":"rsms","email":"rasmus@notion.se"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniglob_0.1.1_1532303244502_0.24494678335186926"},"_hasShrinkwrap":false,"publish_time":1532303244626,"_cnpm_publish_time":1532303244626},"0.1.0":{"name":"miniglob","version":"0.1.0","description":"Minimal file globbing without dependencies; port of golang filepath","main":"miniglob.js","typings":"miniglob.d.ts","author":{"name":"rsms"},"license":"MIT","scripts":{"build":"rollup src/miniglob.js --file miniglob.g.js --format umd --name miniglob --sourcemap && uglifyjs --compress --mangle --ecma 7 -o miniglob.js --source-map content=miniglob.g.js.map,includeSources=false -- miniglob.g.js && node misc/fixup-sourcemap.js miniglob.js.map","build-w":"rollup src/miniglob.js --file miniglob.g.js --format umd --name miniglob --sourcemap --watch","test":"node test/test.js","prepublish":"node test/test.js"},"devDependencies":{"rollup":"^0.63.4","uglify-es":"^3.3.9"},"homepage":"https://github.com/rsms/js-miniglob#readme","repository":{"type":"git","url":"git+https://github.com/rsms/js-miniglob.git"},"keywords":["file","glob","pattern"],"gitHead":"b734fce46a31145fae48480f372fc2c3663246e3","bugs":{"url":"https://github.com/rsms/js-miniglob/issues"},"_id":"miniglob@0.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.5.0","_npmUser":{"name":"rsms","email":"rasmus@notion.se"},"dist":{"shasum":"20bfe2545c795c96ea4f2131873ec6f098517f8f","size":14918,"noattachment":false,"key":"/miniglob/-/miniglob-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/miniglob/download/miniglob-0.1.0.tgz"},"maintainers":[{"name":"rsms","email":"rasmus@notion.se"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniglob_0.1.0_1532224501641_0.6482499165013815"},"_hasShrinkwrap":false,"publish_time":1532224501721,"_cnpm_publish_time":1532224501721}},"readme":"# miniglob\n\nMinimal glob JavaScript implementation ported from\n[Go's path/filepath](https://golang.org/pkg/path/filepath)\nwithout any dependencies.\n\n- Exports two functions: [`glob`](#glob) and [`match`](#match)\n- Supports everything that path/filepath does\n- Additionally, the `glob` function also supports `**` for mathing any directories\n- Only requirement is a NodeJS \"fs\"-like module\n  (which can be anything exporting a `readdirSync` and `statSync` function)\n\n\n## Usage\n\n```js\nimport { glob, match } from 'miniglob'\nconsole.log(glob('src/**.js'))\nconsole.log(match(\"ab[b-d]\", \"abc\"))\n```\n\nIt's [published on npm as `miniglob`](https://www.npmjs.com/package/miniglob)\n\n```txt\n$ npm install miniglob\n```\n\nSee [test/test.js](test/test.js) for more examples\n\n\n## glob\n\n```ts\nglob(pattern :string) : string[]\n```\n\nGlob returns the names of all files matching pattern.\nThe syntax of patterns is the same as in `match`.\nThe pattern may describe hierarchical names such as `/usr/*/bin/ed`\n(assuming the Separator is `/`).\n\nGlob ignores file system errors such as I/O errors reading directories.\n\n\n## match\n\n```ts\nmatch(pattern :string, name :string) : boolean\n```\n\nMatch reports whether name matches the shell file name pattern.\nThe pattern syntax is:\n\n```\npattern:\n  { term }\nterm:\n  '*'         matches any sequence of non-Separator characters\n  '?'         matches any single non-Separator character\n  '[' [ '^' ] { character-range } ']'\n              character class (must be non-empty)\n  c           matches character c (c != '*', '?', '\\\\', '[')\n  '\\\\' c      matches character c\n\ncharacter-range:\n  c           matches character c (c != '\\\\', '-', ']')\n  '\\\\' c      matches character c\n  lo '-' hi   matches character c for lo <= c <= hi\n```\n\nMatch requires pattern to match all of name, not just a substring.\n\nOn Windows, escaping is disabled. Instead, '\\\\' is treated as path separator.\n\n","_attachments":{},"homepage":"https://github.com/rsms/js-miniglob#readme","bugs":{"url":"https://github.com/rsms/js-miniglob/issues"},"license":"MIT"}