{"name":"ava-files","version":"0.1.0","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":"9e07970e5cee12d7707d75f66f54a3413f9be920","bugs":{"url":"https://github.com/avajs/ava-files/issues"},"homepage":"https://github.com/avajs/ava-files#readme","_id":"ava-files@0.1.0","_shasum":"816867eb0302234e279aa98cb59893ab4b8d244b","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"816867eb0302234e279aa98cb59893ab4b8d244b","tarball":"http://registry-npm.ywwl.com/ava-files/download/ava-files-0.1.0.tgz","integrity":"sha512-gfVKVaAXiWT5RbHVY5uZ+84XBDh/+fALwdmmIjD66b5MFDva8CCRyt4Y6Du9N455C0RhkHgv8xiU5BXb4v9APw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHt+66Eq5F/UXkyoR3j+D0nb96oRpSsAnH5B/YKKLYPGAiBSHklpuq1JKV0j4kZOZqYmfG6WigZDktXw12aUZYPHgA=="}],"size":1861,"noattachment":false,"key":"/ava-files/-/ava-files-0.1.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ava-files-0.1.0.tgz_1466304567577_0.9005028856918216"},"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":1466304568909,"_cnpm_publish_time":1466304568909,"dist-tags":{"latest":"1.0.0"}}