{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils":"^7.0.22","@hint/utils-debug":"^1.0.10","@hint/utils-fs":"^1.0.15","@hint/utils-string":"^1.0.13","@hint/utils-types":"^1.2.0","content-type":"^1.0.4","lodash":"^4.17.21","https":"^1.0.0","node-fetch":"^2.6.7"},"description":"utils for network","devDependencies":{"@types/node-fetch":"^2.x","ava":"^4.3.3","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.24","types":"./dist/src/index.d.ts","gitHead":"722be1b4c0836d5c0adacfb00c8c4f6bc5d1e707","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.24","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-BM6qmxehjx7V36mqtKGWUlvFFQEG9+MblN/yA6xY/QZT4jr0/px/BEEp01+rT2OvH8ceYpe5jDW8xZkpRoRZnw==","shasum":"a85151c92993c0ab0c7a7e2103dca863b4f863ed","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.24.tgz","fileCount":101,"unpackedSize":151745,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4SB+yWmlw483m5wEFKL26XiWNzsqiaRXLg3FisJfX/QIgTO5PG7G7jXnlYc3OTXxUNwWoY2aKMBBOZ7hvweYmN78="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE51xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHkRAAgRjwK/buD/kNFCHMstJhHIyn+s0BvlOuxRMaRjAf8yIz0Sxa\r\nXPq779siz2Z2v9bBJb31BuOVYHbtwb+Em4NWoJgSd1Xr7PiscW36FkNW6Uy2\r\neTj0U+XaJY2Xl8QrGFqFDQQgAbg/RZegaUP0N6q2pxdnpn/bgQDNvof6l7NN\r\njnxnt+DcPKcIYdXAE+TMnUYVUtOTkLUJd3lk1EowcM5iwUNfiXGpmL94Whkc\r\nC3Mahz/mDSGKdTvXN08DgAwuSTLbHQMPGHR6ws70t73mRdensOej4EwEa9KR\r\nXwaDj37jhoI9KMVMWf8hD6718t0x+vAM80L2gb7aqBoxyxNwj7EjjamH72eX\r\nhHkSJ7/U30uKWgYJX0ty4V9VizO4gIBeJtpRy6i4kKvAEwOQHWeDKVz5rHgF\r\nilba+koXfsHCRtKz093NWG3VQiF+ADo8VIZauJcK8eedf8uHZB6luVyY6aMH\r\nk/uzqbClcVsoaETbTmu1D529b7VRl5F3056+AD5QYHfrJ65PahUbFB4kwKhC\r\nfnL4Ezy2MZfdByYJeToPRyQWSaa++WjOUZbo52vrlRyO24nCOfP0dJoZFbKN\r\ncItN0pxWrkIbPStWfhCQyaHalo7Kq6hszucw6tI0k5mXycknv61go5CchwH6\r\naR9mOHF3/uxqdVCf0sq1YA7nfFw4FpdKM8E=\r\n=5ud7\r\n-----END PGP SIGNATURE-----\r\n","size":48886,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.24.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"leotlee","email":"leolee@microsoft.com"},{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.24_1679007088867_0.518251801585853"},"_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":1679007089092,"_cnpm_publish_time":1679007089092,"dist-tags":{"latest":"1.0.27"}}