{"name":"file-set","version":"1.0.0","description":"Expands file patterns, returning the matched and unmatched files and directories.","main":"lib/file-set.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/75lb/file-set.git"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/file-set.js > README.md; echo "},"author":{"name":"Lloyd Brookes"},"devDependencies":{"jsdoc-to-markdown":"^1.3.3","tape":"^4.5"},"dependencies":{"array-back":"^1.0.2","glob":"^7.0.0"},"gitHead":"f36651f87ed54548def258c52fb84b50ca95794e","bugs":{"url":"https://github.com/75lb/file-set/issues"},"homepage":"https://github.com/75lb/file-set#readme","_id":"file-set@1.0.0","_shasum":"a69f6f846de922bf03df012e8f6d95b2dfbc5f43","_from":".","_npmVersion":"3.8.0","_nodeVersion":"5.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"a69f6f846de922bf03df012e8f6d95b2dfbc5f43","tarball":"http://registry-npm.ywwl.com/file-set/download/file-set-1.0.0.tgz","integrity":"sha512-Ysc9sfRXcbqiS9dJbM0VbnJKNnHpZ1ug972jbsWs+Jrmc+HKyqBOPPvKNsirxCD/KuIEECSpiwCujxGHAmD3xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYrwUPtgaqS41NB8gkiTUVKtwqO0UXjGHCSez5gXJcpQIhAP6YiRxALTJmpbpF5JitYZ5e2mCGN90NdGNOO1vYfdsE"}],"size":3204,"noattachment":false,"key":"/file-set/-/file-set-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/file-set-1.0.0.tgz_1457004659634_0.8043199931271374"},"directories":{},"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":1457004662639,"_cnpm_publish_time":1457004662639,"dist-tags":{"latest":"5.3.0","prev":"1.1.2"}}