{"name":"file-set","version":"6.0.1","author":{"name":"Lloyd Brookes"},"license":"MIT","_id":"file-set@6.0.1","homepage":"https://github.com/75lb/file-set#readme","bugs":{"url":"https://github.com/75lb/file-set/issues"},"dist":{"shasum":"b035ce7bfe1bb59c929c7094a35c0c297b13a053","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-6.0.1.tgz","fileCount":5,"integrity":"sha512-q8RoxnO3hg9OEIQPCtdfINzPonr6tsWcvGKWenZX28dlUg9tL1B9nHu0j806BsMIi4M5149VZPaRhU3VuhmhEg==","signatures":[{"sig":"MEUCIAME0KOUMt2yv/OfpNo/PvgfiebXGifaH6NfQOmJkmbcAiEAkY+YQdDlD4D3VQ/s+frkJAPDXU/ACvxFom7TF2wzpgU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282836,"size":63032,"noattachment":false,"key":"/file-set/-/file-set-6.0.1.tgz"},"type":"module","engines":{"node":">=20"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"gitHead":"604d5cc8013edc94832e55113d8715b53767d0b6","scripts":{"dist":"75lb-nature cjs-build index.js","test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test-runner test/test.js test/require.cjs test/win32.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"standard":{"envs":[],"ignore":["dist"]},"deprecated":"The v6 major release of file-set was scrapped due to the minimum Node version requirement of the underlying node-glob being v20.. File-set has been rewritten to use fast-glob v3 which supports Node versions back to v12. Please upgrade your dependencies to pick up the latest, correct version of file-set.","repository":{"url":"git+https://github.com/75lb/file-set.git","type":"git"},"_npmVersion":"10.8.2","description":"Expands file paths and glob expressions, returning matched and unmatched files and directories","directories":{},"_nodeVersion":"22.7.0","dependencies":{"glob":"^11.0.0","array-back":"^6.2.2"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/file-set_6.0.1_1724633874724_0.15531892505862332","host":"s3://npm-registry-packages"},"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":1724633874933,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1724633874933,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}