{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils":"^7.0.18","@hint/utils-debug":"^1.0.10","@hint/utils-fs":"^1.0.14","@hint/utils-string":"^1.0.12","@hint/utils-types":"^1.2.0","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.20","types":"./dist/src/index.d.ts","gitHead":"50e8485324a6c885c736d0b4d1ac8513d875f5c4","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.20","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Ely7eNvSr1fn/pC15LrH4z282dgzpUDXgLtvS3/rnuE2ZB2UXE63buQZPUiwwrmnmXP0zeuuIKFu8CmwVExn2A==","shasum":"0983b87915aafc9344ac343cc0e5ca70d8a1d084","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.20.tgz","fileCount":101,"unpackedSize":150274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiiiGauIDtkD5elO1Df9vTeb1kSPH3wvs+BNqIkX6xkgIhAPKq9XGTnM4XzTFIvKjfTcxewRTjscOcDJRkYFxRv1x0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyFSVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqauQ/+KnqsQ5lXvpQ29MLvM4oSCtR3TPEGZhYpZBzLRkRYjxce8RWG\r\nmSuMD3tXJx24tCS0cf/cEE4fvyaIG5mGeI7mpt01oZoIZUEC0KWaKZHZGvcc\r\n3l5ku+PPGIvSoXHbcqf2IajqcJLuwFIPPnjMg8t5cQzhZur2J+3diW/+400P\r\nrcgaMDO8dXh34VwJtOy4zJQrQcDQDCLAY1VluOSEWpOe9wYMp4MevGMyM9J8\r\nEickpHvEvvknscbR0LV5K5sj/DLdwvZerWWH3SZP0Nj8i7ofmO4n9+2ZuiNS\r\nFotB8SDdC4BfRQbmz7feqlQBET11+HY4U0Qb/fZiRznG0Rbqi0kZ3GXnE5D8\r\np4GRKcNuU+f/j9d1CYNZ2i/Bxxl+aT89CTZxnvzpizFPtl+8Z8kNfQX4PEiH\r\nYeHwDG5SVNWx8iqYypDJ0dRMIwLnAxutii+cMLb7FcIwLY8LRHFp/criIu26\r\n8LCJ0fNZe8F1CiLlbjLNbP+QBuRGaqpVc0VlABJQH65RG9T4F69SpembcyGb\r\nqdzwDBmLTEUuPQkm6lGfT60VpOifXO0iKTXuVxhuoPuuRxK9dE1WlBB0iXy0\r\nN+aF+nUdDgqrb5Go7AcZz0cOWQ+y/PuFTDqeBKLImSgO+R0GYR+PGfOMS9wc\r\nzj2YERSQgQzzFixos+ytvkgeLlBXRWjySII=\r\n=iM/z\r\n-----END PGP SIGNATURE-----\r\n","size":47790,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.20.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"},{"name":"johnatms","email":"John.Emau@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.20_1657296021252_0.2525177397366649"},"_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":1657296021479,"_cnpm_publish_time":1657296021479,"dist-tags":{"latest":"1.0.27"}}