{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^7.0.6","@hint/utils-debug":"^1.0.2","@hint/utils-fs":"^1.0.5","@hint/utils-string":"^1.0.5","@hint/utils-types":"^1.1.0","content-type":"^1.0.4","file-url":"^3.0.0","lodash":"^4.17.19","request":"^2.88.2"},"description":"utils for network","devDependencies":{"ava":"^3.10.1","eslint":"^7.6.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.2","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","sinon":"^9.0.2","typescript":"^3.9.7"},"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,.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.6","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.6","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4DYdkVGbpglfDcNemz8XTsb7mTyCUDd4UwTGTLxNbODsAIvWvjk4oZFqXWd/RKQehKRSooKz91AJEb7NMrMVog==","shasum":"ced75aed79153a9334c252a0ed06a8f911e31889","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.6.tgz","fileCount":90,"unpackedSize":805850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRDgyCRA9TVsSAnZWagAAARcP/2VzjLwDWXH3cZVrN5i2\n3kRO1c2pXkttAHCgFDE9Us4WkPMay01hSRb2xuVWC0J3JVnnHdwYZqqOVokt\nsCi/1krsxzlrENO80XCJt0WXoLNco4GSY+DzHsyqYH2TLg0qfhZp90FJkmvR\nAP/qiIjOxj6uRcSbxHjhN/ve+KQp4O5YvPyExLPgbj3qtnaYLMhnEVcz9WYj\nTrPigpBuaYc8zE0VX6seXgFfyTKN2SHtrBS7C6djI/pK/UcYyLc33b5Fu7Z2\nMr+O5w7vdOgEH+K/HPuM72uQhK3Gh9L+mxRnByqzF4HRtxNx0aou1nWl75+1\nWQzKGAFaifY2VzN3qIlPDujaxvno9uhuS9idH11TrvxzcSRY/Ypxgzb/qu9J\nGSx860iqY3+nz7g2VMjAm7SSsBXQNyxYCNxq1IIrWixAsJWaEGy6R5luzHfO\nZaTVlWl8SnR893WUHHNVb9pqQuf1l0M1uHEtAIcpkDAp2pgoELcxrXLsLaUk\n5sYN09kg7K6g1i2xD8dKALK6gUOE43ulZFjRZ33TtUhBps6SehdJ8t+nYSc0\ng4PCoekULY36qf+0FPDgFfl3sEoqUsqZi7VvVEhCBezIA0xHrjS5owaft+QK\n5cwwyAOM0zpAneXpMBejO5UQNixapLrtUrX0zPRzalm77XxVPmcKkwEERpIf\nQqrr\r\n=cl5V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMRZiV9yrc/x+5/lZRMDWJXtzJu0KPLIo+AxQdezbDogIhALJxY+08pN/iqM9eIupS3nZtLLFyUWDru0kbYIMmOlai"}],"size":53573,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.6.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"John.Emau@microsoft.com","name":"johnatms"},{"email":"amolleda@gmail.com","name":"molant"},{"email":"jdgarcia@outlook.com","name":"sarvaje"}],"_npmUser":{"name":"sarvaje","email":"jdgarcia@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.6_1598306353653_0.37244065249675784"},"_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":1598306353767,"_cnpm_publish_time":1598306353767,"dist-tags":{"latest":"1.0.27"}}