{"name":"file-set","version":"5.2.2","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.2.2","gitHead":"d50e4c5c9270559df843fed1b7f21e63ff9a8810","bugs":{"url":"https://github.com/75lb/file-set/issues"},"homepage":"https://github.com/75lb/file-set#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/KgJI1V/QaDK4enOk/E2xMFk1cTWJghEr7UmWiRZfZ6upt6gQCfMn4jJ7aOm64OKurj4TaVnSSgSDqv5ZKYA3A==","shasum":"5fa6f99924cf15f0bebb35cdf065aa976183e12c","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-5.2.2.tgz","fileCount":5,"unpackedSize":8914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPcU/0TlneqcBGcNTZitBv2qZkNErUCrWHyduxzkqcWQIgdcJzHmpCviCu7M1ev7hiyr8PHAYij+4m1R3ro1ZEWEM="}],"size":2968,"noattachment":false,"key":"/file-set/-/file-set-5.2.2.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-set_5.2.2_1725110661016_0.028787405455570125"},"_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[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\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-24 Lloyd Brookes \\<75pound@gmail.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner).\n","publish_time":1725110661227,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1725110661227,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}