{"name":"file-set","version":"5.1.0","author":{"name":"Lloyd Brookes"},"description":"Expands file paths and glob expressions, returning matched and unmatched files and directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/75lb/file-set.git"},"exports":{"import":"./index.mjs","require":"./dist/index.cjs"},"engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && test-runner test/*.mjs","dist":"rollup -c"},"devDependencies":{"@rollup/plugin-commonjs":"^19.0.1","@rollup/plugin-node-resolve":"^13.0.2","rollup":"^2.53.3","test-runner":"^0.8.14"},"dependencies":{"array-back":"^6.2.0","glob":"^7.1.7"},"gitHead":"0c12f0a59c834845b5bec14df60b390b6cc121eb","bugs":{"url":"https://github.com/75lb/file-set/issues"},"homepage":"https://github.com/75lb/file-set#readme","_id":"file-set@5.1.0","_nodeVersion":"16.5.0","_npmVersion":"7.20.1","dist":{"integrity":"sha512-Brsv0k49zkvQOg170mrs+iqxl3ppASYOR4vs80qpb79DG7KKlNGGdN1uGVQz+UysXqZAnolQo6LWcISR2LHoQw==","shasum":"121367c75cdd7de85666f56e738a8afaec9c1c9c","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-5.1.0.tgz","fileCount":4,"unpackedSize":7602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg++i6CRA9TVsSAnZWagAAT+cP/2Picd+eessX2Aa+dHKi\ntYpv10TL74yN59aDDDjVeDDvq1ZbHd9bJjRXbQQ5m3mj+6urUsUcliWZMEZK\nEUcBZwJKoQIU8qJm6GWFd1ORayaGyQ2PQahPIm8g/MtGLgABkdDZf/rCrBGR\nCP2CmAc5srL01yoOl37d1jK94jD9fLSa3PPlQ2m1zHGAxoUhO1ScP/URL4Yx\nYTmoiXBswMG5dH3ZwXVVuSPEKkmG1Z/mqlj5jRt9h13s7Lf4Hs5JezhF40Rt\nsfg5tR5hpIhpMur+xS/eg5AtDwrUjYFo9D2vqKAh3FNOIHNwb22s3RE5XZp+\nfBayal8t7Zvg8yxYEZ81Rw/rokyig61OfFHXhlasW6M8Uaol4vskxJXJoNHA\n1xfCXeOstH7fjigL/btWpzyblPdulcsbQhdOcONKn7qT37gWlEvGUc6PuSE1\nwb+5bUjgcGdFYjrex54MYl3PNlG3+Cet0cBgrNQOItoqpBnB3OFwkTD8kV51\nnFQaStmCOd0X6YkiZaLKGYqxK+p942ndUUb62tLaj5QRmP291o3cs+0d3m6F\nozFZHPPqz2hqTb59+kuC56rdnMRwLJ+g+jDD3pCWQ9y4frMNhQnCuz4TqmL8\n/sLPTK2cO2yMi3h19wy19Kyn/7kp9ecMSsjSSLc9hszVpybcmCnR6nusPn4z\na+p6\r\n=Leeo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBu9/4PGnK68WgALoejVS5E+xzVZYlFlZV+9KgOrmFZ3AiEAtq+RHSODwNijDLM3J7IEL8RNLH2KQJb8Fs7y5FeRM2Y="}],"size":2940,"noattachment":false,"key":"/file-set/-/file-set-5.1.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-set_5.1.0_1627121850008_0.8217442917480626"},"_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\nExpands a list of paths and glob expressions into three sets: \"files\", \"directories\" and \"not existing\". Each set in the output is a list of unique paths.\n\nThe library saves you the job of learning a globbing library, expanding a glob expression (e.g. `lib/**/*`), sifting through each result testing whether it's a file, directory or neither.\n\n## Usage\n\nExpand two glob expressions (`'*'` and `'not/existing/*'`).\n\n```js\nimport FileSet from 'file-set'\nconst fileSet = new FileSet()\nawait fileSet.add([ '*', 'not/existing/*' ])\nconsole.log(fileSet)\n```\n\nThe output has been organised into sets.\n\n```\nFileSet {\n  files: [ 'LICENSE', 'package.json', 'README.md' ],\n  dirs: [ 'jsdoc2md/', 'lib/', 'node_modules/', 'test/' ],\n  notExisting: [ 'not/existing/*' ]\n}\n```\n\n# API\n\n<a name=\"module_file-set\"></a>\n\n## file-set\n\n* [file-set](#module_file-set)\n    * [FileSet](#exp_module_file-set--FileSet) ⏏\n        * [new FileSet()](#new_module_file-set--FileSet_new)\n        * [.files](#module_file-set--FileSet+files) : <code>Array.&lt;string&gt;</code>\n        * [.dirs](#module_file-set--FileSet+dirs) : <code>Array.&lt;string&gt;</code>\n        * [.notExisting](#module_file-set--FileSet+notExisting) : <code>Array.&lt;string&gt;</code>\n        * [.add(files)](#module_file-set--FileSet+add)\n\n<a name=\"exp_module_file-set--FileSet\"></a>\n\n### FileSet ⏏\n**Kind**: Exported class  \n<a name=\"new_module_file-set--FileSet_new\"></a>\n\n#### new FileSet()\n\n<a name=\"module_file-set--FileSet+files\"></a>\n\n#### fileSet.files : <code>Array.&lt;string&gt;</code>\nThe existing files found\n\n**Kind**: instance property of [<code>FileSet</code>](#exp_module_file-set--FileSet)  \n<a name=\"module_file-set--FileSet+dirs\"></a>\n\n#### fileSet.dirs : <code>Array.&lt;string&gt;</code>\nThe existing directories found. Directory paths will always end with `'/'`.\n\n**Kind**: instance property of [<code>FileSet</code>](#exp_module_file-set--FileSet)  \n<a name=\"module_file-set--FileSet+notExisting\"></a>\n\n#### fileSet.notExisting : <code>Array.&lt;string&gt;</code>\nPaths which were not found\n\n**Kind**: instance property of [<code>FileSet</code>](#exp_module_file-set--FileSet)  \n<a name=\"module_file-set--FileSet+add\"></a>\n\n#### fileSet.add(patterns)\nAdd file patterns to the set.\n\n**Kind**: instance method of [<code>FileSet</code>](#exp_module_file-set--FileSet)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| patterns | <code>string</code> \\| <code>Array.&lt;string&gt;</code> | One or more file paths or glob expressions to inspect. |\n\n\n* * *\n\n&copy; 2014-22 Lloyd Brookes \\<75pound@gmail.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner).\n","publish_time":1627121850157,"_cnpm_publish_time":1627121850157,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}