{"name":"file-set","version":"5.3.0","author":{"name":"Lloyd Brookes"},"description":"Cross-platform glob expansions simplified. Input: file paths and glob expressions. Output: resolved file paths organised by type (file, directory and not-found).","license":"MIT","repository":{"type":"git","url":"git+https://github.com/75lb/file-set.git"},"keywords":["glob","files","node-glob","fast-glob","globstar"],"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test-runner test/test.js test/require.cjs","dist":"75lb-nature cjs-build index.js"},"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"dependencies":{"array-back":"^6.2.2","fast-glob":"^3.3.2"},"standard":{"ignore":["dist"],"envs":[]},"_id":"file-set@5.3.0","gitHead":"7232a9dca9efc53a8f8355eb5ad2bda5811e39e9","bugs":{"url":"https://github.com/75lb/file-set/issues"},"homepage":"https://github.com/75lb/file-set#readme","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-FKCxdjLX0J6zqTWdT0RXIxNF/n7MyXXnsSUp0syLEOCKdexvPZ02lNNv2a+gpK9E3hzUYF3+eFZe32ci7goNUg==","shasum":"f8ab3a930bd0912cc6fe372581c3aac71682ebfb","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-5.3.0.tgz","fileCount":5,"unpackedSize":9004,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFMnLsZ7xhUXWf8ORByYs+/Jr88TY8hVzrs1L7cPAztoAiBYz4I12nkzs9QDVwlfIIU/TJXgvKed5FQnqFRlu6P8/A=="}],"size":2951,"noattachment":false,"key":"/file-set/-/file-set-5.3.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/file-set_5.3.0_1752766638052_0.4752276845301917"},"_hasShrinkwrap":false,"readme":"[![view on npm](https://badgen.net/npm/v/file-set)](https://www.npmjs.org/package/file-set)\n[![npm module downloads](https://badgen.net/npm/dt/file-set)](https://www.npmjs.org/package/file-set)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/file-set)](https://github.com/75lb/file-set/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/file-set)](https://github.com/75lb/file-set/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/file-set/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/file-set/actions/workflows/node.js.yml)\n\n# file-set\n\nCross-platform glob expansions simplified. Input: file paths and glob expressions. Output: resolved file paths organised by type (file, directory and not-found). It handles all the cross-platform issues associated with file paths.\n\n\nParticularly useful for handling user input, for example a CLI utility which accepts a list of file paths and globs.\n\n```\n$ example-utility index.js * not/existing/*\n```\n\nThe example-utility above could pass its user input into `FileSet`. Call `await .add(<string[]>)` as many times as necessary, adding more path/glob expressions each time.\n\n```js\nimport FileSet from 'file-set'\nconst fileSet = new FileSet()\nawait fileSet.add([ 'index.js', '*', 'not/existing/*' ])\nconsole.log(fileSet)\n```\n\nThe output has been organised into sets. Any duplicates caused by overlapping glob expressions are removed.\n\n```\nFileSet {\n  files: [ 'index.js', 'LICENSE', 'package.json', 'README.md' ],\n  dirs: [ 'jsdoc2md/', 'lib/', 'node_modules/', 'test/' ],\n  notExisting: [ 'not/existing/*' ]\n}\n```\n\n* * *\n\n&copy; 2014-25 [Lloyd Brookes](https://github.com/75lb) \\<opensource@75lb.com\\>.\n","publish_time":1752766638222,"_cnpm_publish_time":1752766638222,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}