{"name":"file-set","version":"5.2.1","author":{"name":"Lloyd Brookes"},"license":"MIT","_id":"file-set@5.2.1","homepage":"https://github.com/75lb/file-set#readme","bugs":{"url":"https://github.com/75lb/file-set/issues"},"dist":{"shasum":"ddb7176aff8c7844f4cbe7ce0cc286c6da27199c","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-5.2.1.tgz","fileCount":5,"integrity":"sha512-VT0imQytlaCS6AaAoIMfcdjM0qcvdc/v8znC/cYu/umMyMKBViR0UNwiroIbCtsigSzZYbsUhRHx8u41E7JZrw==","signatures":[{"sig":"MEYCIQCkodjmAfU9sBYyZi4MmZzDh2Jt0Qo7qL7jPJqELvg4sgIhAPh1OQUEEZvuqrtyujJcQpNsQxxBeByzwakZYdl37GDy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10262,"size":3200,"noattachment":false,"key":"/file-set/-/file-set-5.2.1.tgz"},"type":"module","engines":{"node":">=12.17"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"gitHead":"af845c2c47ce11db46201d19c3fbbd4f1235ff53","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.1_1725108623739_0.05538802258472186","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":1725108623889,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1725108623889,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}