{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^7.0.0","@hint/utils-debug":"^1.0.0","@hint/utils-fs":"^1.0.0","@hint/utils-string":"^1.0.0","@hint/utils-types":"^1.0.0","content-type":"^1.0.4","file-url":"^3.0.0","lodash":"^4.17.15","request":"^2.88.0"},"description":"utils for network","devDependencies":{"ava":"^2.4.0","eslint":"^6.6.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.1","npm-run-all":"^4.1.5","nyc":"^14.1.1","proxyquire":"^2.1.3","rimraf":"^3.0.0","sinon":"^7.5.0","typescript":"^3.6.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":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives","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.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-network@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Gx+TD/lh3Al7bOiS4yH2EjYSkySw8GsBkimXBTJeIxO+AdEUd74ghJ/lO39dDrviwbSr54qwsqCzvNVLE95u/Q==","shasum":"b9fe274349be9d8647f446a629c16996e0d23dbd","tarball":"http://registry-npm.ywwl.com/@hint/utils-network/download/@hint/utils-network-1.0.0.tgz","fileCount":90,"unpackedSize":368887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5bTHCRA9TVsSAnZWagAAW9gP/jntHdWFFpOJ/ERPx9Jh\nnNl2PZmUPeRhW8nDFsxjfPvGlkqZ9XDdn7CrymOxwUmj8p8WcbvQ3wDdo+e/\nfXuWiF7M5a3xDaaDtIjyRHP8pAM+G2lSJSBRL9YieU9mvjWdenNoXlTIPVLY\n3UhgntNPxWibswkQSnvUtTA1LI+sp5B4YsQAHDm9Znr3HxATeF1Ghi2gszgI\nS+xlR5yijq+7HLOEHx7Ifgr2Z300hUJ1Ojgr8kR6UPOSoPLqn/xpHpZj1VZg\nfHfh1rlTdNv76OZbAs4HGRoi3yokKf+zl36V4etz9taPXWAUi9WrH+PfSY+7\nSbxbTW5P8Vb8T5RM12RfYrTCPAovtG8OjSs8DSOnwY8jkkAlQTWIAVsBOcbc\nZJME41sCxHfsUZv/coW/rFxV8/+RNnLhN1T6Tl7qmohEhHbZ9ViGVDidDEKY\n/xa4GImD3Dr859cMgiYZ7/lDtneg3gaDZAdNtIrLGkqUqbMJLZ4vinh0KabT\nE3jK4rRVRadHcGFeCnunwaQX9BsRJiJy3VE+Q1Rq1yfuSVLAm0/78YAYf8Pj\n4cNCd1ihBJmxwMfOEEfA8a6MMlWBU5yQ7gKdM31nYqOXikA/w9CDBV/kOzzm\nw/mpr5dhjknWPlsweJPzrJHEwVstBVeayRY4Ju8vonP5BrEWWKt+LOkqCymu\nUA9s\r\n=pMHB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICwgwkwa4qN8Knh9xHOZ8oTG/FrViL2OCDR5rbwLVt7lAiEA25Up8/j81xihRu5bmsTDijMnOlxxL42BHtDgXN9n9iQ="}],"size":41173,"noattachment":false,"key":"/@hint/utils-network/-/@hint/utils-network-1.0.0.tgz"},"maintainers":[{"name":"antross","email":"antross@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-network_1.0.0_1575335110999_0.19926683316284066"},"_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":1575335111225,"_cnpm_publish_time":1575335111225,"dist-tags":{"latest":"1.0.27"}}