{"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.1","@types/chokidar":"^1.7.5","@types/mock-require":"^2.0.0","@types/node":"^8.0.14","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.5.0","eslint-plugin-import":"^2.14.0","eslint-plugin-markdown":"^1.0.0-beta.7","eslint-plugin-typescript":"^0.12.0","hint":"^3.4.0","lodash":"^4.17.11","markdownlint-cli":"^0.13.0","mock-require":"^3.0.2","npm-run-all":"^4.1.2","nyc":"^13.0.1","rimraf":"^2.6.2","sinon":"^6.3.1","typescript":"^3.0.3","typescript-eslint-parser":"^18.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.0"},"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 && tsc --inlineSourceMap false --removeComments true","build:assets":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc","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.2","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/connector-local@1.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.4.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-yChiDMEk6FyDWtIgkJ5DlxzvBLU7t4aemgdMWEG+91d1HGgibyvb2IcC1OTMJm02bTd1JPm3IlrMBGubi5sgEQ==","shasum":"4d0959d6e7b9519ca12569935273209e19fe6de5","tarball":"http://registry-npm.ywwl.com/@hint/connector-local/download/@hint/connector-local-1.1.2.tgz","fileCount":6,"unpackedSize":25409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbm7uMCRA9TVsSAnZWagAAvy4P/3ssmAptA2lWc2GYubSg\naSC/WeWiT9Ska7d+kVwF/Q7+sh/SIv06gXiMkE+AA/emminrJVjJUTDv/q1C\nl7MZFUU47FNwLPge/Q+6QpFqiFliImncQ2HPq1NMPeu2FlRdepQnVv2hhplX\nAQDw5Z+tf141BRHKOYIou53v7aTDIcOpNhaTIVEi67CRLb80vDV4c1bH2L/n\nDIT6LuzH7QdBfkIHnKy32XVUNszg6O5MJHR9qYgqiyJ6twNgt+NhazNdQAiU\nYU+4TlNWOjyt9cGZ7ZM3QUAVlPFT3nTz6mUH/dNs7Db6d5yps475YCw/YzHN\nDkeZTDjP1LJ18Xx0lkq0YYP6888SA3WdluKD8uknthkmGGA1xvRdXBbHB+b5\nxdwROpdreeV1KcZUHabGyWmrSvlJte7EszKbBBqJ5+TzMILPpbGUGmgJY5lF\ndNCATTkKRdmx9hakNTZu1Chmyo0g0DQPGYtj8GtyLlqN+NUQtbda3HoZfO5D\n5dDNRS2MK1pta/O3XREqZhGLI7ArgDNzisovruFKtXb+4ShvRJIbj8Xkn5Iu\ny8e2GZ0V8PElKQk3mF8YEPSqZecLgYFHLHUO9sUTCGrImek33eF9VkBscS3r\nFO4srXXslZ6qyr4fjoGXjcRUN2vs0uieHKhw/C6VkShVtUqVcBKOpcg93l9+\nIKRr\r\n=X4VR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtw/9rXxdPvQ2TlL3IuHtbf2K1qrurDNSjCJCdSz2XjAiADjHb8RZXul1mtGPbdNAonXZ5i4fATkFNa8Ab5Q9B8kQ=="}],"size":8269,"noattachment":false,"key":"/@hint/connector-local/-/@hint/connector-local-1.1.2.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.2_1536932747722_0.8009667369560831"},"_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":1536932747882,"_cnpm_publish_time":1536932747882,"dist-tags":{"latest":"3.2.28"}}