{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^7.0.9","@hint/utils-debug":"^1.0.4","@hint/utils-fs":"^1.0.8","@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.9","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.9","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-F6gdAPWM4q7rZRaVdTIl8Efei6lQYOQrk21uiyKD0hISyO2vPeqD6sGt4Q2mwsMgH47PsFd9cjG1yhkcA693cA==","shasum":"c87ee6c3e4fd035d503ba5125f00a8d705e6203c","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.9.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\nwsFcBAEBCAAQBQJgHeagCRA9TVsSAnZWagAAtsQP/iy1kAB17YRLLV1gip1q\nfs5UDxy57Xh3L+yPD1jy5oC22xwQD2g8amrmheMyjRfQFLwGOzmI8aUDvDJX\nAo+tSuAFdUGdjKrwIhazbxc4OsoWyjXGjqAt025dc6KED9Cwm5EXE4mVoGAR\nZn0q4/W7XJ3haWyz0PujUe88Cn9taeSoOmkp7m7xYIHvkrBWXo6JOyS3ZbZI\nEbFJ13Yy6YzmvAxx2rY1ctcAL7PBmGCw2Faxc4GuQ//avWpEEA0wfm35FTYF\n3ePwXn9IDVuLzQfb2/xqQdSQIAHv3n1uunvom/pvig6RdvyWJyAKbfF16n3v\nIKEJmvGUj4kyp9+ykFMBbOfTcVa4KHoRiiJJwKpvOZdO+7085GxOKfSnE5Z8\n7KZ0Y2Sp+I3Q16vNry/8HZZ4zy+8dq5KlL724WBrAYLCR++EyJ/N3hmEa67V\nQDZ0JjNHJ860a6wqvtE8afnKMtWcQ5gqvFw0pU/J+8ZnqdQ7hmmloyQHs8xm\nDfkFu31slePy84UkeWR2khtswGF27RAQDoBQ2mh0XwFwA5pRJB5APJLIMRaW\nJ9HrPFyiJekd6o1UADIgpC+D6taKVeeLAtSZ8IxPAcH4bshlm8ln6xQJjWVd\n/B9lvbA/sNDbjW08Yo8Ax/cjTvkld6gU4QvVpZaqNCL38WTPPrVqMC4ZOVb9\nvopa\r\n=Kw81\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbU6jMVfH54J55n1+HZrxbfXbBGNuf5twoTzqimCGu+AiBnPFQV3oerFHXcxeMw9p3jSdVH/+ck29EoTlc29qPPiA=="}],"size":54054,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.9.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.9_1612572319950_0.08015819349478659"},"_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":1612572320097,"_cnpm_publish_time":1612572320097,"dist-tags":{"latest":"1.0.27"}}