{"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.0","@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":"^4.0.0","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.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.0.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 && nyc ava","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"2.0.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/connector-local@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-HnXHcFHyZh4TKr0Kjv0L3/CKNspwxB1oVNxNPUY55npGYYod1iMKdlygKO7M5emrQ8G4YFIIS1aQoGl2G1l0aQ==","shasum":"1cd1e400d7572b4b58b9d406cf1ebea99bb5453d","tarball":"http://registry-npm.ywwl.com/@hint/connector-local/download/@hint/connector-local-2.0.0.tgz","fileCount":6,"unpackedSize":26946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4M5CCRA9TVsSAnZWagAAGQEP/0Nh0TnMFNy4kmJYvZkC\nzZHmCotiKIirWbogzUHsj3EEfyLm/3f5QT/69PmPQSSiZHTXhofgfWt8fUOJ\nH04DEe7Iou48bSK7KeJw5hEJb0yiQZBh+N8jOuF9XS+Tug/vCt1XXLZg5M/F\n5v3rgUbRYgYSjQJ4VBI1u7Wo66LhJxLp/d07UzIC3ezafYaHS/v+glLDMaeM\ngSIyKNwRNVuTJlJII0Ex5kClbJMsqk7Pv+M6iA5cTny9ct743nuyFbTX9AuZ\n/xyWhzWASsYQtS1kYegdSMhG85DXSJh+L1KmyvYvRNEeb7UDZ2UFvkuXXT8j\nn+2YjwbuVd3ORy99krg+jzJ0ZMtwpsOW4TxHcKnYbDMdrEBMpze/JA4iinTD\ndXA3yfUu1LM11HO3LZnzDKgTkHB5JDRx9yEqQStafL2tkdm32KRG42Pn64SG\n60tD88ulgFBug7XFarrD9JyNZjc4cvksV51T18Uh5Rq+bP+JrGFtiLKmwNBG\nQ5CG6sykoxd8BYP+jHBhiY7lCHMQp2VhYcaBS9Dvr9xQOYeVv70TYZAwwmay\nI3f89y8oSnQiilTIz2838Q15miy7L9VcC4fAJCIOIOyQ39UDdM7Bdtk++KT0\nm1T9ydlAAbZdSchk4uh8UU2fN7BXJsUVanYNPSRwgnAcXcxHyAtFlBzjsKUh\ntAmH\r\n=mdmo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVh1LlnbhbxUSvc46wq9ao2QSRyFBLoKUdluYoLWpkHwIhAIF4rCVH18cr7jv2HezkDmbJBbpJMAogc9cbPant8jKz"}],"size":8709,"noattachment":false,"key":"/@hint/connector-local/-/@hint/connector-local-2.0.0.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.0_1541459521393_0.22496356087225666"},"_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":1541459521516,"_cnpm_publish_time":1541459521516,"dist-tags":{"latest":"3.2.28"}}