{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils":"^7.0.14","@hint/utils-debug":"^1.0.8","@hint/utils-fs":"^1.0.12","@hint/utils-string":"^1.0.11","@hint/utils-types":"^1.1.6","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.25.4","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.15","types":"./dist/src/index.d.ts","gitHead":"259226d420ada93e86c1ee0e5876251967abcf04","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.15","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-6jNJH6NBN4sH3+oPEj4450GcQNSJLa6waxpJlo8WMsp4T6s4l2SHWOXLkJe3EUd79LFs0BiaEXUH3mMVRGANWw==","shasum":"601f41df4c6023a718bf4654c059cdb962311606","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.15.tgz","fileCount":101,"unpackedSize":150292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKkZpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSOhAAjEs0uZV9X0NvWqo15Cg7lnwP5YP/PveXnZajVUT0Qtd46XUH\r\nUEuRcg/nXpSq2YzS5EDuOfUsIGUpoWlTunKfbwnD/IyL8Q0RFUqkXtbdEPmg\r\njC0vE1cbBq2t8gcsXeArrjc7/DluECGtkzZgdZkLPQ6KC30+D7YQvs+QtpdA\r\nBiU/oRbEJWw+7/gPPnzOgn2wJkjzZrLwOrbl/JVYDDaoQ2LtFVbB1FDdpTvR\r\n58s4zri5zG7MKQw+Jk2kMcbuydKMP2rhvwKImP2lzKkuiV7PXBNRH/EJ9KTU\r\njQY672bWkcZuDo3Xr19gfa376rC914+qbYVcgmgTb13tSf2a3jeRn9FICq/p\r\nfyBu7rNeM/E16tz5Y82fycGYbfuU80wlv+sj8UX51dvCjSSPEjeogf8kAiiZ\r\nFqMYzmguiHqvMEb4coYt0wAgqaVYMMwFeOWsFXK4Ngc8EaFp/pWYumanMV4v\r\nIqe2uxXoXdhSGO7Y2wN2TAhqIvX2Q1EVnmQGJr2rFFgiD9uYO0jkwScWYchS\r\nYAmBFx/bKG2+iq8Hg6s4ZsJN3H/xX2JhqTwnqMypZBCwLoCgvOD1Yap7Oy9Z\r\nto7yfDs+EG3lyBsUeIRiR1Rm9hISVDMNbc7hk7Tj2cIM95TF9JjLOkDBEqfR\r\nPJKjhA361t6cwiXX/QwRWF0L9+DD48Ov12w=\r\n=KGPv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0eXCcL3zlBQr58jPdHX+Qw5OAaiA5hXKgQ1S8E6BDAQIhAOEg0l40KMvW27Q5xOqAFioUlcHIF9fEIv31iYAW6Yoy"}],"size":47805,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.15.tgz"},"_npmUser":{"name":"oaflynn","email":"flynnolivia@microsoft.com"},"directories":{},"maintainers":[{"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"},{"name":"sarvaje","email":"jdgarcia@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.15_1646937705654_0.272568590143929"},"_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":1646937705778,"_cnpm_publish_time":1646937705778,"dist-tags":{"latest":"1.0.27"}}