{"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":"^2.0.1","@types/chokidar":"^1.7.5","@types/mock-require":"^2.0.0","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.9.0","eslint-plugin-import":"^2.14.0","eslint-plugin-markdown":"^1.0.0-rc.0","eslint-plugin-typescript":"0.14.0","hint":"^4.1.0","lodash":"^4.17.11","markdownlint-cli":"^0.13.0","mock-require":"^3.0.2","npm-run-all":"^4.1.5","nyc":"^13.1.0","rimraf":"^2.6.2","sinon":"^7.1.1","typescript":"^3.1.6","typescript-eslint-parser":"20.1.1"},"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":"^4.1.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 && 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 && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"2.0.1","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/connector-local@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.2.0","_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"dist":{"integrity":"sha512-WoZTRcIPmwq9vSD4gwSM7ghD+GKVdNHRXRmcIHa9zvnEBmY4T1q1vxwlQzLxyCm3yNGRq7nJvHh5dtSKp5bcFw==","shasum":"324c3c491ef33a54ccae6155e377af66cb987940","tarball":"http://registry-npm.ywwl.com/@hint/connector-local/download/@hint/connector-local-2.0.1.tgz","fileCount":6,"unpackedSize":27410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/hUJCRA9TVsSAnZWagAAX8UQAJxwYUGZ/oFSBhhaXmUK\n9fRbELvLnyRzVDI/RvHrk0yM2FSL9iyG1PNrL+nO8Q+VL8vzLLyfIHvmmypJ\nT1KJhzU5l8i5lhjdfWGtsCaNux8TodG0VdY5i7HxA9r2aZHkc1HcyRcxCbkO\nRAtweYEGDzAS+1GOUmXEV7HoOstxIJ+JdkDx64TfkDZqujsVF8rWlB3341cg\nI6c6ZYAbGj3P2WP060Hcx52Le/IQMJMYACPQ+Nk9Z+RuDgRFd/eKYgNGzxD1\nG7b0aeTVNEFbJcxre8KlmM+BQ8pqdFu/KUr5IbsCX4hcTgg2Zm/D1+1t6yu3\n8fA/2sigf6ZY4VOPYf9kYFV33GFp5tbHtLkiqeZCzRL6f7FTxsHhosZNwPux\npfGlcIICdFGJmU2tUQI+mBdqQU0LCDLk6uI/OcDDYTyj2XZiLU+IZfuQhQFB\nWlE8ROBqcO6i9MWTl+VCVbd2RUJYNo/gP2eKrlah8kZUhytYcqnp7ndqGUwY\n0VI0dD/EDm+BrDF3uuV3Q0Dg1+1mMlysGKT5+rv8mKXVbxmp5ozRUrMkNUXO\nR/OIZRbyVTptg/npEM+N4OtPzlV2DsiYQcSvkul3Bh/3iim/yH9uYzJfG0XU\nAt+H8Qn+MIVsTXW7/jp7T3s8JofwhMWjIoHh8TQBw6+qqxWzwen3u6dwKM+Q\ngAnL\r\n=jYtb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDavA9PcZmQln2HJTCH/cP30hU0YiNYv8hsu5DLCaG1uAIgPkyJGNwVGIHoCzQT6q1M055co5USQN9ACXvICpU0Ag4="}],"size":8836,"noattachment":false,"key":"/@hint/connector-local/-/@hint/connector-local-2.0.1.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_2.0.1_1543378185159_0.3387526135238328"},"_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":1543378185284,"_cnpm_publish_time":1543378185284,"dist-tags":{"latest":"3.2.28"}}