{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^7.0.1","@hint/utils-debug":"^1.0.0","@hint/utils-fs":"^1.0.0","@hint/utils-string":"^1.0.0","@hint/utils-types":"^1.0.0","content-type":"^1.0.4","file-url":"^3.0.0","lodash":"^4.17.15","request":"^2.88.0"},"description":"utils for network","devDependencies":{"ava":"^2.4.0","eslint":"^6.6.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.1","npm-run-all":"^4.1.5","nyc":"^14.1.1","proxyquire":"^2.1.3","rimraf":"^3.0.0","sinon":"^7.5.0","typescript":"^3.6.4"},"homepage":"https://webhint.io/","keywords":["hint","hint-utils-network","network","utils","webhint"],"license":"Apache-2.0","main":"./dist/src/index.js","name":"@hint/utils-network","repository":{"directory":"packages/utils-network","type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"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:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run build-release","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:ts":"npm run build:ts -- --watch"},"version":"1.0.1","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-m+T2Ie4syZY4mvi2L7ADq15DfZl1rHY7ezIjehg7EV1HxDWUcP4Sj0mFlc0v/SmLkKuRoaSo9WRxCQFrouhVLw==","shasum":"fde23899b568cab5c0de7db261a498f456392068","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.1.tgz","fileCount":90,"unpackedSize":397191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6FSiCRA9TVsSAnZWagAAjc8P/0XVlS04qi0lJEpM/qvW\np3KTmKU0CCe7fC5/3lVruABiikMN+5THzuJMnqmc2LpJOigDWE4FkO/k1mP/\nzN918oZ+v9CrIxmRtWg7zeeKIWB5b4QEzLQ8JWsNUsBVMhtE7yNy9dpmSfNl\nu+tf1uIhQpTE9eydH3ndEkuYire3DHGI4OeN/q1NuZwoYcfNpKoEqMfCsml2\nzP8RGRYmmawiYyeVhlPVehp7LrDHZ8/hoPJydhMaOb2hH4o7yXVkOhEVaW2u\nQr76o49sFkqBK8wDKocSZZXsuic/8lkFZDFbksjiDl9XJkhKhUQmSQ8wRBi0\n8QgT8+T5ARkKgXNn5ajrd+m3kXh5MbvcGBKKusz5VzvK2ZMg1emjiycY4hBS\n3kz5rtnuc3BAw4dpO1LtweLQwgqXs26TwAX2Jl5X0sVTM5TE1chxZ75DAsI2\nPcbuikzn+sbAxCVisr0g8mhANUXGnk7I51M+FRqHVi6lG1OKJAD0Kx6BZEOD\ny0Zr8L4PFmvmqryK7EEZ9QLrWGZgFwX0s+Krbl+8hapOoBiLnPhcCEz0XJGB\nN8P7m45INR6Cq7nABSQprXytzJXF8G0OaMJ7zEpUXllFB7Y9yuqXqj7hKnKg\nheZit1SQPN31UnkhniOFVXJmXZFnE17OrBL8/GMFLGq12ajaFh9PPKAC3whs\nvrbC\r\n=JEAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzzpNqrTROpLXahWPSLBBZxUBVkm0JchGkz2uFzQOyiAiEA12DTzjDdmBQCuflXW1qcRducBkRXukWTeZydZaXbtEw="}],"size":48505,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.1.tgz"},"maintainers":[{"name":"antross","email":"antross@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.1_1575507106030_0.42209599583400337"},"_hasShrinkwrap":false,"readme":"# Network utils (`@hint/utils-network`)\n\nSet of helpers for network.\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\n## Utils\n\n* `asPathString`: Returns the pathname of a URL, normalizing depending\non the platform.\n* `getAsUri`: Receives a string and returns a valid Uris\n* `getAsUris`: Receives an array of string and returns an array of valid Uris.\n* `hasProtocol`: Convenience function to check if a resource uses a specific\nprotocol.\n* `includedHeaders`: Returns a list of all the headers in `headerList`\nthat are in `headers` sorted alphabetically.\n* `isDataURI`: Convenience function to check if a resource is a data URI.\n* `isHTMLDocument`: Convenience function to check if a resource is a\nHTMLDocument.\n* `isHTTP`: Convenience function to check if a resource is served over HTTP.\n* `isHTTPS`: Convenience function to check if a resource is served over HTTPS.\n* `isLocalFile`: Convenience function to check if a resource is a local file.\n* `isRegularProtocol`: Convenience function to check if a uri's protocol\nis http/https if specified.\n* `normalizeHeaderValue`: Remove whitespace from both ends of a header value\nand lowercase it.\n* `requestAsync`: Convenience wrapper for asynchronously request an URL.\n* `requestJSONAsync`: Request response in the json format from an endpoint.\n* `rxLocalhost`: RegExp to test if a resource points to localhost.\n* `rxLocalFile`: RegExp to test if a resource is loaded from a local file.\n","publish_time":1575507106201,"_cnpm_publish_time":1575507106201,"dist-tags":{"latest":"1.0.27"}}