{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^7.0.10","@hint/utils-debug":"^1.0.5","@hint/utils-fs":"^1.0.9","@hint/utils-string":"^1.0.8","@hint/utils-types":"^1.1.3","content-type":"^1.0.4","file-url":"^3.0.0","lodash":"^4.17.21","request":"^2.88.2"},"description":"utils for network","devDependencies":{"ava":"^3.15.0","eslint":"^7.27.0","eslint-plugin-import":"^2.22.1","eslint-plugin-markdown":"^2.2.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","sinon":"^9.2.4","typescript":"^4.2.4"},"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.10","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.10","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-HhYEOJFn4jn7FlFeGVMkS7c74FfeG83pkB6hoV1vF7HsjmunJdDS7fx2nSnK/8hr54k95co1W7kbNlVe0nBQgA==","shasum":"6622d4a20b518b95713df42176b17bed7a8d29c5","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.10.tgz","fileCount":96,"unpackedSize":532809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwRLqCRA9TVsSAnZWagAAAPkP/3W7cMEHLGFdqRwYmclr\n3U+YdN3uLlo2pLpDIErocMPN/+/QqguMH1V1QvYZ3LkI33Kc6DFiVhz1MtqP\nJhVZO5R3XbLHNKEiGV5DcmcgHHECaw/ANsFuEnBBuxxNGqMNa6oRBLAqyUY6\nL+SczsAIns3HdMizWVNVFX1pWxxsfj1BltwAC3R2wVNi0WEUZ7FgyW7johad\n/POSuGcf2BQu4SLcaxuFJFSyTX1VweTJ5nZ7+cfC2cgiK6IZCQtmu5ZCM4h4\nnsIjNa4mIBR9OQ0/rGfaDCX+PqbZf0+dma5G0gY/kXxHmOFH75ed3dHW1q8A\nYbpHlJKq96xp1UHSZwidkb7cjtE1vLFY5Vwr9UJSOyLNSQ2KY6oto6tTbAhR\neMELYyq3kSjTZL7hBwaHUOEv9tFkVnU+gWgJXqnKCcQcDMCzDTA7dpPgTEpG\nYPFz70AyVyISokEVcqZviRCXDPv2LvYNs5v7paD0+aytwldWzfZWOiCXmB2g\nnVDzIQ5C0w5j2m5oxZ075FEuWkLmKNxscVEbxrT7XpgJOknGvyCiiP/F9kOC\n69eYzI4zFjzo3ugVuqxlL89OVfM4exDBllxSEbxKvRQhd8IGPqIVbB8crKD5\n9NnQOSgbW4E8xTABLQ8Lu/rZBBYvyCbeLUZ+SioHdcjn3w0nAyG60B9nPD2S\nuwkP\r\n=GEmn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBk1UcLEkwaUi7qCWQr6Qs3Gpffr/09lPqyeYno5JD38AiBYS3zok9IyD89OdP4r1IsDnvDLNXoTQuD8y3NqCvhzWg=="}],"size":56370,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.10.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.10_1623266026500_0.33712704929488946"},"_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":1623266026856,"_cnpm_publish_time":1623266026856,"dist-tags":{"latest":"1.0.27"}}