{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils":"^7.0.16","@hint/utils-debug":"^1.0.10","@hint/utils-fs":"^1.0.13","@hint/utils-string":"^1.0.12","@hint/utils-types":"^1.1.7","content-type":"^1.0.4","lodash":"^4.17.21","request":"^2.88.2"},"description":"utils for network","devDependencies":{"ava":"^4.0.1","eslint":"^7.32.0","eslint-plugin-import":"^2.26.0","eslint-plugin-markdown":"^2.2.1","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","sinon":"^13.0.1","typescript":"^4.5.5"},"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":"copyfiles \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext .js,.md,.ts --ignore-path ../../.eslintignore","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.17","types":"./dist/src/index.d.ts","gitHead":"86a21f9d09e2e0c824fff06081f329f0382af256","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.17","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-n3BXAPOwnlL6+UDT+16jun2ylCEVOBYw4hVtGrjJ2nwIMzNnwzBa0mG4pGKhCHY7vyiGjVvOSjXrYgXa6lWyHg==","shasum":"fa8a63c0a3ed73c0a4766b4a370ce33101564542","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.17.tgz","fileCount":101,"unpackedSize":150293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiji/h5kvu2gcupSvCmEGRc/yrM3dB+sl2jJSU5H7WGAIhANaSTjP3sppOEI21Djs+SqlGNNCM9U3ePcm/yLEYei5y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicdqjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr88w/9GQGawvVqcAHelAYLTAgEo/MDCPoLFZs8yfHGrvOW8P+IjkhD\r\nCQl0LUFZ7ntaciR1QJHpjiFkzMpnJSANSJkN9LkUA0KRKJ6DazjtafLkrZ1T\r\n0nnr0BkBRxSaVlm5WwjxQDIhQs5VAfjMIcYF5RYWhhgIFnn0HImbB4RDygb4\r\nlyudsXns+t2ca9fN2zo5YDFVUgkBHf5UyPCkIDkXPE0ewVKHG5da2orULn5M\r\nKWWvE77QJMMcQJolXMA7jKtjNoYAKv1d9upc2+M+LZNmlURMwBPXqXgcmTAy\r\nXvp6aae4Ak5Os6NMOiUI0tMHDMtmcTwAOCLIxW3qBbS0hqYxMJvJ27H727fM\r\nBeHFNEnCh8bFHKkCMbgX9366J/jHD8ymy5igarsOlSLncz/bSOxCFAdMwvYU\r\nZj2xopZVU/Km6HsrQVrsbD7RffytzCB+1OlDKM7bzHn/IYQZF7tUcgE39iwP\r\nCIPuwcZmU8kfvIy93sTLjBFoxE/+x776LSfYFjo9KpGtxYlKj+E2mi3YdIKs\r\nbMg4sUjo+t3MTEqwOH1FBqycAJmwqRYAD5o2D8WuOiRQ2VPzEoKT0LH6Iwhz\r\nmymVW9Zsn6q1tmKESz476x2dTGQE61oiKqZ3rDtjIa8MMdBfpI2UH8QxVM2Z\r\npL9HQX6OtSPEPIDy2ZfjGXp7NczqeuBSRts=\r\n=lYHq\r\n-----END PGP SIGNATURE-----\r\n","size":47810,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.17.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.17_1651628707019_0.8976337744243543"},"_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":1651628707141,"_cnpm_publish_time":1651628707141,"dist-tags":{"latest":"1.0.27"}}