{"name":"file-set","version":"4.0.1","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"},"engines":{"node":">=10"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t README.hbs index.js > README.md"},"author":{"name":"Lloyd Brookes"},"devDependencies":{"jsdoc-to-markdown":"^5.0.3","test-runner":"^0.8.13"},"dependencies":{"array-back":"^4.0.1","glob":"^7.1.6"},"gitHead":"b18b05de9d72320a8102b00c2ec891fdefca5773","bugs":{"url":"https://github.com/75lb/file-set/issues"},"homepage":"https://github.com/75lb/file-set#readme","_id":"file-set@4.0.1","_nodeVersion":"14.1.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-tRzX4kGPmxS2HDK2q2L4qcPopTl/gcyahve2/O8l8hHNJgJ7m+r/ZncCJ1MmFWEMp1yHxJGIU9gAcsWu5jPMpg==","shasum":"d8a4485a89c8db7ca414f05a043bce44a2d6a913","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-4.0.1.tgz","fileCount":5,"unpackedSize":7891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezBYHCRA9TVsSAnZWagAAC6IP/223kx5FEEzPH3n3lQ7S\na5Or7J+FVZo/oomoL8zO5/jFE4YfzbIY+O3JaSmE6Nx1Bm+Xe2CXcxqPlm8o\nnek1RSCIdThMy4667j8I6Fz27guvXbJANPmhl9r+aYsk64HBcACbnmElTMz8\nu/cIoEhFxKONblgXMAR2Brsgp2SmFobgTlUKNdPt02en+IbxV+hKZlZUfNj1\nVfbMSYGWgJFEjRIymBa1ez90GO7IdQJhLyGKZtG/2SmVlzicdXjZnCtfkM0C\n1yqQlNG/pKXV9YprcGN1pzWQx6fFpxf2+kNvuwcU0wX0aCb4M8X+DK/oqDH0\nvB+rENX8sZiIn14VkDPZ3yLsdlTvm1IwSH7pkLL0fPm+4SPIJo7eYNmmzTZu\n8JMTe75RRBzvwvcz3uN9upG5swS5ORHyGxxZn+1FdgjoL+ZlqrZqYS+V/7dS\nnLM62HMS73xakOqyMYyxtNdjlKA9qaPxtlc5hbSL60vn0URlgXf9kiBOx0xU\nipRi79AWMmkCo1haBrqga9Oq2Zy4zwmltzvZPm0ZXg1VjVeF4e370/MHbKI+\nitYL9Os7c/XtyMIV/HLnml5jtVaYlzeau0pqedjqar4xQKAkoIprrSEP+nSR\no0qPi/mV8i8sOuFc2eNWDx6eh8MTHoeVw9In0p0xPVb4S47m56SuhmGfWGad\nMJwr\r\n=gEyJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErdPy4NtF2DUoBorIApp8qFjZbi08EY/DmQ0rZRXKeZAiEA1KqYRrpvXVZCD/ngd2P+UGxQV+NB23qDObSK/ZPPQXA="}],"size":2610,"noattachment":false,"key":"/file-set/-/file-set-4.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-set_4.0.1_1590433286609_0.5150112045427464"},"_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":1590433286754,"_cnpm_publish_time":1590433286754,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}