{"name":"file-set","version":"5.1.3","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 && npm run test:ci","test:ci":"test-runner test/*.mjs && test-runner test/*.cjs","dist":"rollup -c"},"devDependencies":{"rollup":"^2.64.0","test-runner":"^0.10.1"},"dependencies":{"array-back":"^6.2.2","glob":"^7.2.0"},"gitHead":"0edae4826db50560c8b4f7a3f5a5971495d1e5cb","bugs":{"url":"https://github.com/75lb/file-set/issues"},"homepage":"https://github.com/75lb/file-set#readme","_id":"file-set@5.1.3","_nodeVersion":"17.3.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-mQ6dqz+z59on3B50IGF3ujNGbZmY1TAeLHpNfhLEeNM6Lky31w3RUlbCyqZWQs0DuZJQU4R2qDuVd9ojyzadcg==","shasum":"44dde6a8ae52d69813ee22beccd7cfe28bc655d2","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-5.1.3.tgz","fileCount":5,"unpackedSize":10718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4fDRCRA9TVsSAnZWagAAyxgP/38VK83ZtRC0JZioo/IS\n1gsmPPI2NSasT+uf9JQ5rcrJstu1PVy2MC6skqsL5nAssVNnG93mGl6grrD5\ndmCl/MDGk5HRAocRvwvuBxUagYHjJDh7b43VgyvBSjIgld2bVwLhgIAfXjkn\n5iA414OJjUjyM0KjxhU1ZXKISNHbhfcFc8oLcuNwa5s33ToLIUrAFgLP6wcV\ncpt2vrTyyED2oTq8UI123ZnrmZ0rQxQPKryJfUWrV3/iHzPKWTL2L1A9kGRc\nc5VmakNrvRNsLC5+1o0wu9dIMZoQC6p2iC1FJMgXEhFcfPiIqDWMVlQ/uj2X\nr+uTMLLL7/tR4BgbHnC79qzvjM0/uvntmCLFj2pJj2GyS0c//Gs67fdVyzII\nsJJQ4o1/Ib9INTCmxdbiwVeQgEReDCj+TOBW5inT025KDKqfxYyu8SCwIgF2\n1AhrsE/8Rv4fS1QBv2/aEh0WVX4Ug/GW58cjA9rm5y1oL+U3Uk+WE+kqFpp8\njo62AgH31xcUA7f59PyRS4ORhLhdYtY9Tt3ZNdK42T6Np04ezJmafx27QLXZ\n/YESB+VvsNWAnMhaSbhcCB+sslwVW0Jr9/vk0Vc0JZcJkhQeu+vXAvQS5RO5\ncssfQyLeKrZhUCfOEmhsxNhG3UrflbgXB4lNqIT96FUQ+7R5j33akIF0Xfe6\n9uh5\r\n=xGF4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE+tmESr5dgWARdXBKvBQkB5yhd6sJX4+jO2aEMpCPKgIhAI6fjKD20GGzyXAx68O/yUAsD73ipLKSq9LwGjRzNasz"}],"size":3402,"noattachment":false,"key":"/file-set/-/file-set-5.1.3.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.3_1642197201015_0.12330441810879234"},"_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":1642197201180,"_cnpm_publish_time":1642197201180,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}