{"ava":{"failFast":false,"files":["dist/tests/**/*.js"],"timeout":"1m"},"dependencies":{"chokidar":"^2.0.4","globby":"^8.0.1"},"description":"hint local connector","devDependencies":{"@hint/parser-html":"^1.0.6","@types/chokidar":"^1.7.5","@types/mock-require":"^2.0.0","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.8.0","eslint-plugin-import":"^2.14.0","eslint-plugin-markdown":"^1.0.0-rc.0","eslint-plugin-typescript":"^0.12.0","hint":"^3.4.14","lodash":"^4.17.11","markdownlint-cli":"^0.13.0","mock-require":"^3.0.2","npm-run-all":"^4.1.2","nyc":"^13.1.0","rimraf":"^2.6.2","sinon":"^7.1.1","typescript":"^3.1.5","typescript-eslint-parser":"20.0.0"},"engines":{"node":">=8.0.0"},"homepage":"https://webhint.io/","keywords":["connector","local","hint","hint-connector-local","webhint"],"license":"Apache-2.0","main":"./dist/src/connector.js","name":"@hint/connector-local","peerDependencies":{"hint":"^3.4.14"},"repository":{"type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm run clean && npm-run-all build:*","build-release":"npm run clean && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives","lint:md":"markdownlint --ignore CHANGELOG.md *.md","test":"npm run lint && npm run build && nyc ava","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"1.1.3","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/connector-local@1.1.3","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-O7NWvZUctoyasx920gogGwefy5BxiXU6ReqAVtFB73UavQm9hzmJXw2LEHHdM3mpPhElCOO8RrOPqyEN7euhpQ==","shasum":"2497374dc19d6c16d0aadf63cfe7fd5f123479d7","tarball":"http://registry-npm.ywwl.com/@hint/connector-local/download/@hint/connector-local-1.1.3.tgz","fileCount":6,"unpackedSize":25880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2iVhCRA9TVsSAnZWagAAcnkQAICivTWPLrm/qKNaQtWg\nPIATvGFA7ta4bkD4yvBVYSIPra0xdXlJvvLZSxIkE0YrmZMBqbyncyuyaJ4i\nN/TuO9usCwq7SZMq/yFfO6tuykv4qO/cOnkLf6s1r8P592i9aNhHW8qnaAzA\nyi48yGIC0CWQ/NjFTDfD9nqm+85IckgM2SY7aIXndD6ROihSIjLrjyBtSGl5\n4HdwiQs1T/xqk7nBBkcVfbjuaCUKz81xa9Feq+mRwwMniUzzL5T911/CtduV\nLKim47ZUfWzKxgG4NqjGEke0hXLyLavznfR2/4tzb8KJgwA4HqMI1IaUtFHA\nqvDI1LyYq37Hg/DgOsOmLcZ7X2mww4hf5vAEDbupx+zzKeD8+gIybDn//4O2\nfIvltftvyQP0mBA0Kpjf3a/A4s8ZVYKupTqBCNNw/HY+j2DFbLoybd4oLb2r\nj073ND2+8MmC3T2PfDeYEEjlxjezWwb/68xD5Qcm5HzYo8c3XELs5Rj1tzdx\nf9A2TwDKaeIYKNdONxawFl9TUb4aEM00n6+SLxHvrBb35NEmJF5zmZ9JkG12\nc1IDC+zUyfD888fZdLA0nKjlLeq3WWxghlywFXSkLMeEI6s1tTEc7xLcSI31\n3coRAVP2BitCSiYSb2s5mdRmMcq+GKk9bC8rAUdX5SgzuRoe+6xS6Vwe78hQ\nF7R0\r\n=Ba6l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB0QC5iiYGmv+mYAbmy6gX1yen/J4sGv1Uyzt0OL1eBwIhALj9bIj7VevrliZZg1E422WoHsFB2MtemfBBWY+Lc33e"}],"size":8410,"noattachment":false,"key":"/@hint/connector-local/-/@hint/connector-local-1.1.3.tgz"},"maintainers":[{"name":"alrra","email":"alrraa@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connector-local_1.1.3_1541023072321_0.807573440660204"},"_hasShrinkwrap":false,"readme":"# Local (`@hint/connector-local`)\n\nA local connector to analyze the local files in your project\nwith `webhint`.\n\n## Installation\n\nThis package is installed automatically when adding webhint to your project\nso running the following is enough:\n\n```bash\nnpm install hint --save-dev\n```\n\nTo use it, activate it via the [`.hintrc`][hintrc] configuration file:\n\n```json\n{\n    \"connector\": {\n        \"name\": \"local\"\n    },\n    ...\n}\n```\n\n## Options\n\n`local` allows you to configure the following:\n\n* `pattern`: Add or ignore files defined in the pattern. By default the\n  `local` connector will use the following pattern `['**', '!.git/**']`. This\n  doesn't apply if you are targeting just a file or if you are using the\n  options `content`.\n* `watch`: Run `webhint` in watch mode. Watch files and trigger the analysis\n  on changes.\n\n```json\n{\n    \"connector\": {\n        \"name\": \"local\",\n        \"options\": {\n            \"pattern\": [\"**\", \"!.git/**\"],\n            \"watch\": false\n        }\n    },\n    ...\n}\n```\n\nIn addition, the `local` connector accept a new parameter in the\nmethod `collect` that allow you to pass the content to analyze as an string.\nTo use that property, you need to call to the `executeOn` method in\nthe engine with the content to analyze.\n\n```js\nengine.executeOn(url, {content: '{{your content}}'});\n```\n\n## Further Reading\n\n* [Connectors overview][connectors]\n\n<!-- Link labels: -->\n\n[connectors]: https://webhint.io/docs/user-guide/concepts/connectors/\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n","publish_time":1541023072499,"_cnpm_publish_time":1541023072499,"dist-tags":{"latest":"3.2.28"}}