{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils":"^7.0.17","@hint/utils-debug":"^1.0.10","@hint/utils-fs":"^1.0.14","@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.18","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.18","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-igtNEsGpadWIrzESTLhpNvul7CNaqzmzQDe63XuA8fTR2799OuKOlXBVC1YTk6xmZYAPxDcnKyKQPBpLryKM4Q==","shasum":"4c8bb17a7061dfd5df2bbb39427f47dd88e44c70","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.18.tgz","fileCount":102,"unpackedSize":166472,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdm3f3KI3Nq6ksb11AlSO2n4PBYPAEZzjrjLZg+D6zwAiA5SN9CRUSY2YrSAU+Y7BppqTXvtvAxV/6z+Jc9v5wZIw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinn+hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEXQ//Zb16PgJDIo5wItXsS5/1OzvM1vC6l7jgRGPy7mIQUl/Yzsun\r\nxULE966URWJOi1PzdYgtVd0ShJWWpxCoaEP2ovWY1HgxRn/Xb2RCAY0x6mkL\r\nmCOKMOP4gFPzLj/5EKCA/R80mO5kTh9BpPrmjFOQdK2AamX2Pdg1SBu6zZ6c\r\n31TmMtbQbrrG8CBoJ7ElD8PvkKM3iqDDDmavDRBcYWHIMgPwlc8PZPerk62d\r\nA36C4f8hW4UeY4I5qwAXn69hsrD6ywkF3TmDr4tXw30fY7hmfa1oa+lPK1MJ\r\nDQGttznoyTfjIMWodVtGUoxj4nqHtAzVm/dHBDeuQATJL9LESxO6Euw4KxC0\r\nX867v9RAIe3+Jl6m07zczvYmYo89p2z87Bvm8ld3eH9KGl+YGZ7JAEzLdu8Q\r\n8Dh0MDQjoOfU2a/dxMUSYkOsk6dYQj5jf9KFCRC953VWcj5Q1kMmmYhzNy+t\r\nFODqhLhWvdqMJQl/7J6qEZLUpg+SqI8KNYpK9r9VcftMmirat5oBmnfI21pR\r\ndkL5RknoCAxarOtKODP/1/nTutAI0ZhzYWYuZEPFFkpeHg0HQ8CoHSnmQHRc\r\nE0P1Q27lqrc9p5wBdakiSkSHWEetgCltv3KX/u3riWKpgrUSjKKaI1XDiDeC\r\n9FhIQnSYKNQVNn+YPrvkamOOC+oNGyZ4KQo=\r\n=aMHS\r\n-----END PGP SIGNATURE-----\r\n","size":51681,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.18.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.18_1654554528945_0.25924540472056745"},"_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":1654554529174,"_cnpm_publish_time":1654554529174,"dist-tags":{"latest":"1.0.27"}}