{"name":"file-set","version":"5.2.0","author":{"name":"Lloyd Brookes"},"license":"MIT","_id":"file-set@5.2.0","homepage":"https://github.com/75lb/file-set#readme","bugs":{"url":"https://github.com/75lb/file-set/issues"},"dist":{"shasum":"5f398e2d5ef81d212e96770c488a92baa7e891ac","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-5.2.0.tgz","fileCount":5,"integrity":"sha512-3SMq0Fl1cJBNutTHUKTnGtvL+YEh3WR5PcGh5Ynb/FDSmUJK79b2xVpc3Y6uH5UGNGk39MIzKRMmYXZ47FjOVQ==","signatures":[{"sig":"MEYCIQCttQoFGco6QdqZYSXCIno5kHxIYltv62Ll5kwotU8lKwIhAPAbH/G4LrjHR9wQKDQ7AVaDrIFrd4+ENo6Hqf+n1p6E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10128,"size":3186,"noattachment":false,"key":"/file-set/-/file-set-5.2.0.tgz"},"type":"module","engines":{"node":">=12.17"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"gitHead":"d3cefc4706d0baa6cf4a703f8a248ae822e364c9","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"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"standard":{"envs":[],"ignore":["dist"]},"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":{"fast-glob":"^3.3.2","array-back":"^6.2.2"},"_hasShrinkwrap":false,"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/file-set_5.2.0_1725020190689_0.19195928457464118","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":1725020190842,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1725020190842,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}