{"name":"ava-files","version":"0.1.1","description":"File resolution for AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/ava-files.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/avajs"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava"},"files":["index.js"],"keywords":["ava","files"],"dependencies":{"arr-flatten":"^1.0.1","bluebird":"^3.4.1","globby":"^5.0.0","ignore-by-default":"^1.0.1","multimatch":"^2.1.0","slash":"^1.0.0"},"devDependencies":{"ava":"^0.15.1","coveralls":"^2.11.9","nyc":"^6.4.0","xo":"^0.16.0"},"ava":{"files":["test.js"]},"nyc":{"reporter":["lcov","text"]},"gitHead":"7ac819fcee46c187d37e6e2e90d4993551ec2d35","bugs":{"url":"https://github.com/avajs/ava-files/issues"},"homepage":"https://github.com/avajs/ava-files#readme","_id":"ava-files@0.1.1","_shasum":"18abb6f4b87029c32fc35f2053fecd3a55f1d2b0","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"18abb6f4b87029c32fc35f2053fecd3a55f1d2b0","tarball":"http://registry-npm.ywwl.com/ava-files/download/ava-files-0.1.1.tgz","integrity":"sha512-LjHPvKEYdx/uj3m/PLB2L+KCcNWitXI4/okczopRyW9PArqjRx/gNVeMGUbiuH7b6eebNlW828JyVSl+45yt2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgbWBotu7gCPxKmySdbz0G+Xtxjew5XWYVWeIMIcgRYAiEApAyJ1LP95OHwwdu5++1Ttbc78GabEd8ebxnkMux2PPM="}],"size":4132,"noattachment":false,"key":"/ava-files/-/ava-files-0.1.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ava-files-0.1.1.tgz_1466305553532_0.6873789655510336"},"directories":{},"readme":"# ava-files [![Build Status](https://travis-ci.org/avajs/ava-files.svg?branch=master)](https://travis-ci.org/avajs/ava-files) [![Coverage Status](https://coveralls.io/repos/github/avajs/ava-files/badge.svg?branch=master)](https://coveralls.io/github/avajs/ava-files?branch=master)\n\n> File resolution for [AVA](https://ava.li)\n\n\n## Install\n\n```\n$ npm install --save ava-files\n```\n\n\n## Usage\n\n```js\nconst AvaFiles = require('ava-files');\n\nconst avaFiles = new AvaFiles({\n\tcwd: '/path/to/cwd',\n\tfiles: ['**/glob/patterns/**'],\n\tsources: ['**/glob/patterns/**']\n});\n\navaFiles.isTest(filePath);\n//=> true or false\n\navaFiles.isSource(filePath);\n//=> true or false\n\navaFiles.findTestFiles().then(files => {\n\t// files is an array of found test files\n});\n\navaFiles.findTestHelpers().then(files => {\n\t// files is an array of found test helpers\n});\n```\n\n\n## API\n\n### avaFiles = new AvaFiles([options])\n\n#### options\n\n##### files\n\nType: `Array` of `string` glob patterns\n\nDefault:\n\n```js\n[\n\t'test.js',\n\t'test-*.js',\n\t'test',\n\t'**/__tests__',\n\t'**/*.test.js',\n\t'!**/node_modules/**',\n\t'!**/fixtures/**',\n\t'!**/helpers/**'\n]\n```\n\n##### sources\n\nType: `Array` of `string` glob patterns<br>\nDefault: `[]`\n\n##### cwd\n\nType: `string`<br>\nDefault: `process.cwd()`\n\nThe base directory to search for files from.\n\n### avaFiles.isTest(filePath)\n\nValidate if `filePath` is a test file.\n\n#### filePath\n\nType: `string`\n\nPath to the file.\n\n### avaFiles.isSource(filePath)\n\nValidate if `filePath` is a source file.\n\n#### filePath\n\nType: `string`\n\nPath to the file.\n\n### avaFiles.findTestFiles()\n\nReturns a `Promise` for an `Array` of `string` paths to the found test files.\n\n### avaFiles.findTestHelpers()\n\nReturns a `Promise` for an `Array` of `string` paths to the found helper files.\n\n\n## License\n\nMIT © [James Talmage](https://github.com/avajs)\n","publish_time":1466305555764,"_cnpm_publish_time":1466305555764,"dist-tags":{"latest":"1.0.0"}}