{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^7.0.8","@hint/utils-debug":"^1.0.4","@hint/utils-fs":"^1.0.7","@hint/utils-string":"^1.0.7","@hint/utils-types":"^1.1.2","content-type":"^1.0.4","file-url":"^3.0.0","lodash":"^4.17.20","request":"^2.88.2"},"description":"utils for network","devDependencies":{"ava":"^3.15.0","eslint":"^7.17.0","eslint-plugin-import":"^2.22.1","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.2.4","typescript":"^4.1.3"},"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.8","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.8","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-k6la40GPHafwpnlqt7qf9iCAUN+KzjRmUw/g1DQIujIxwnx5TS7UGxGRHHWMHczXQ2MZVUGTsu5VELNbP8MsCg==","shasum":"4121150bc02b7278bc5fc8e99d8baca952cd2ef9","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.8.tgz","fileCount":96,"unpackedSize":537361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHEwoCRA9TVsSAnZWagAARaoP/21vCDuAmf08vAAOgWMw\nuu6U0FZvb3eyDw9jJPxkWmyR1atqV8cuv7MjbqlhkVhIA+IwbJg41XiJxuIq\no9zcul9dPcYK6wFWcnr9HlaSiNFJYd+1ILyoxQbk1Typd7vIC/UTHTnK9efH\n/HCXR5A02vxkKbOuHviLf/oZs6J+g7LZ9QGqsn9nZYhMWAfrVcBvQzQ25UhE\nKkW9yB4behf/z2meON7m9BmA2bWAhVs48uNBU71NG2fJDuZwu2xJslvEq9dz\nWr1jGVouxcxasA74egNRNrFfRMIejhRt4WxXV9c3QeRbqwgh0Rj1Dx9/6Hs7\nkMw0UJnMlELh+6IjKRuFkQDGqnbFQMkzaAMg8R9CKnha8ZGoKQraw4eeedNd\nQ3p0J+tnH+vFXYYhM5uJYEUwr5up+152yal6fxYbfi7iD+aBNmGVuR9ynOh4\nbVN7OxqUyIif0gUJ3RFuysa3rQiDgA3MDthZ1VgI36Q+C8Yjz/1LwEupy79e\nfmf7DVAvm8Iaxb4gUEJUsWCvmcLpeY9cz6E8bxc+5aN1sROAM9qEvatpxSMC\nDMu67c10yOI2pWLepJi7Z0bWHZXLEvCYzuHdZZiCuGbWxmZ74qJT8DFHkgzF\ntJ4KnL9rM7TI5T/VoN0iiBDNLtSl9UGi1R4r6n08bxi8v7fvMw8zxHTDaqF4\nY0U/\r\n=HQkc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDi8ujtZXt6hnLyabreBAD7zm5jd6Ftp6SeYa1LKRQexAiBSagUIkLB2xlc5mj8cuxnchtcJsnxcXJkfz2SJnPm1ew=="}],"size":54052,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.8.tgz"},"_npmUser":{"name":"sarvaje","email":"jdgarcia@outlook.com"},"directories":{},"maintainers":[{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"},{"name":"sarvaje","email":"jdgarcia@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.8_1612467240462_0.5774248647371965"},"_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":1612467240645,"_cnpm_publish_time":1612467240645,"dist-tags":{"latest":"1.0.27"}}