{"_id":"protocolify","_rev":"15-d960001fc9e7d94a3d82e6b5c811de87","name":"protocolify","description":"Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"protocolify","version":"1.0.0","description":"Prepend http:// to humanized URLs like todomvc.com and file:// to file paths","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/protocolify"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^1.0.0","prepend-http":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"88ee4674d1a1c512786a53c54de5c7c8866d9a51","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify","_id":"protocolify@1.0.0","_shasum":"e5ba1a4f861e2cfbdcd4b9ac4a3b1f9263c8d79c","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"e5ba1a4f861e2cfbdcd4b9ac4a3b1f9263c8d79c","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-1.0.0.tgz","integrity":"sha512-4wi5e77bDpRitbaZf/lBMIB+9j82Q1MHDB5U7x7VsPC+t9OGY3cE0k/cS6F7dnqOb1LIQthus+oMabgrnVYPJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbnwVSNVxhZydQl1yS/6nqNAHVJXWoj27faO6Eklu05AiARGhR8jYCGnFYc0ER4nEEK7b/BmlGOA1CuGMFzhUxz6Q=="}]},"directories":{}},"1.0.1":{"name":"protocolify","version":"1.0.1","description":"Prepend http:// to humanized URLs like todomvc.com and file:// to file paths","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/protocolify"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^1.0.0","path-exists":"^1.0.0","prepend-http":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"9a87df86c6f796f46aa6201115fe92fe32c6f0a7","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify","_id":"protocolify@1.0.1","_shasum":"f0e76fb459f7ddaa83396a0c0b88fddc56111715","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f0e76fb459f7ddaa83396a0c0b88fddc56111715","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-1.0.1.tgz","integrity":"sha512-1yGi3oqEMsTucrc5f19iN60GzQAmM2DpopOMCCPaPti+zXA/vDrbanLcr/PerFRRRMmwfykNRrYn3U33oGEWyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBuftQqoXaHzEPeVPK+lazC7MDstpqvRPk4A0SV7vgBmAiEAyVDND0qIjlMEE111SodIAe5bAah+sDyIRQtV6Sx3d5U="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.2":{"name":"protocolify","version":"1.0.2","description":"Prepend http:// to humanized URLs like todomvc.com and file:// to file paths","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/protocolify"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^1.0.0","path-exists":"^2.0.0","prepend-http":"^1.0.0"},"devDependencies":{"ava":"*"},"gitHead":"a3e6eda09df505f800d69ac2c91b0fb24a7b56e6","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify","_id":"protocolify@1.0.2","_shasum":"e52196a6a25513b3b4ad1634b43c5983b9469087","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e52196a6a25513b3b4ad1634b43c5983b9469087","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-1.0.2.tgz","integrity":"sha512-HRvL1ydf49DBSYCu5xjmfdSXL9B3/FNlQLKDkdnHhcATx8r+WfW3YFRtRexh4Tt0Lxw+nc5hxAWxzqvl705zpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzS27RfzQ74xz6QOGXymDk+ocl3AneR9YYly54VFPkXQIgYMrdx5+C7osqKlRkwGysVs2T5RTCnj4MQKgcZhkZ288="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.3":{"name":"protocolify","version":"1.0.3","description":"Prepend `http://` to humanized URLs like `todomvc.com` and `file://` to file paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/protocolify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^1.0.0","path-exists":"^2.0.0","prepend-http":"^1.0.4"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"3fec465f5b44b50c78f9a81d6bfab9c6d90311fa","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify#readme","_id":"protocolify@1.0.3","_shasum":"7afec1888986452a8e5248b2b6c435ee2ce34014","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7afec1888986452a8e5248b2b6c435ee2ce34014","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-1.0.3.tgz","integrity":"sha512-fvfjL/i/z/JYnSVgCeTFdPRY/Ups3LRron5qWExBfYQ5/KtylgcBvz6ljUDfmrvNmlIBTZN9ukwBPahfVw7+Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2KyJVCy1w5fiMQNBX+gKNZC8QD+YcEsAjX6DAUMt9AwIgZWwvp7fNaef6BmRpqfH+FsIojXMGAVaF9xykE6a1fbM="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/protocolify-1.0.3.tgz_1463418792307_0.9131041776854545"},"directories":{}},"2.0.0":{"name":"protocolify","version":"2.0.0","description":"Prepend `http://` to humanized URLs like `todomvc.com` and `file://` to file paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/protocolify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^2.0.0","prepend-http":"^1.0.4"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"2e9d7c2f2593c3a5d169d09097d860451ce3948c","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify#readme","_id":"protocolify@2.0.0","_shasum":"369b268511249d7c5ec04c707c8916c1f6241998","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"369b268511249d7c5ec04c707c8916c1f6241998","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-2.0.0.tgz","integrity":"sha512-Y68jIvG3wdYvpFBFHVj705NiF8RWFsOS76dvOVA9bebMWdMy3BX+AmctX2cVTXB8tYVwBg/1nwMwfihHmemgBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE55r+g2m/JvNW1PWcIlYBzywcCgyDuM29h++3KUXZdkAiEA2NTYJhJ13Rx34z68xCTVUKvtqubbAoa0DYkQ+uKcsOk="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/protocolify-2.0.0.tgz_1484313686369_0.6094444892369211"},"directories":{}},"3.0.0":{"name":"protocolify","version":"3.0.0","description":"Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/protocolify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^3.0.0","prepend-http":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"da5582bec7f20c7da0d8a35e7ae8243e7213e0f8","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify#readme","_id":"protocolify@3.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-PuvDJOkKJMVQx8jSNf8E5g0bJw/UTKm30mTjFHg4N30c8sefgA5Qr/f8INKqYBKfvP/MUSJrj+z1Smjbq4/3rQ==","shasum":"addf3f90b4f2b86b65cdaf260a761e2bf556854e","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-3.0.0.tgz","fileCount":5,"unpackedSize":4272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyVpcCRA9TVsSAnZWagAANgYP/RnTMMkQxZnHf6QQRMaN\nKop23xG4f0+iC3tp8Xj2pSiB3fEB6GUjGL4YkridNFRAk2ZxsmaHPMlziVqm\nNofIWa3rtGg4RJFuMwknuyXU0jsUvoMWdlRLpan+cfJUlpOdcTIeVUlUrTwh\nogl5x36Lqi3q5xIjqLM/qOYCSDD2rTVYP5FjmQo7usGtyFFrPYuE9bur6cvg\nBdsZ1/72KxpQIzOtuNa5fKwHcEdz+N+j/zeS3vZPbwI+iCgdiZ0baIolRfA7\n3F8VDJQZQlRO27fhd9dKjwvbxhcwSe+3LLXnyBlJbVXOdK3xNib20tGJ0FkT\nI84Uz90q5qDBAQo8hrNA/V6Zg9sGg4hw2ugGZGOw2ZwV7OVOPL9C6A0hmpze\nqxM6J2emIBHKGFhlIWEImx7Tygq6ws+jDXWIp98s2xfFfTx3vCbqHUfLUb7m\nRCFXOKI0HjZY4qmE0ftrheUYYhvE0a4e1Af4uuOVWd6HBh5NT2YwhgvVVbG1\nRmex8KAcDO789V36ECk0FDeGN7QXa+6WKo1iQS6IaosYfs0cXiZBmcu9Qd1D\nvfhkCI81DWVTl8ZkmcCOnKsYGmA2aGCz2vzvWRWGnvEP3cersJdvY+ibdFQV\nFZ0NXt3Wc9Qi9BtPJQw+mfy9yTnoUdo7sY0uRAdQtvR4YLC/Rtgb0HFGD+d3\nZyJQ\r\n=UIPc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+brstB+9wiK1ijRihhBps9d2yCLB+a2xKKONFSSzHPgIhALMryILt/sz8zj9YTr1QRcLOhveyl09xoZU3E+PzzZ4h"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/protocolify_3.0.0_1556699739297_0.5948452755529905"},"_hasShrinkwrap":false},"4.0.0":{"name":"protocolify","version":"4.0.0","description":"Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/protocolify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"dependencies":{"file-url":"^4.0.0","prepend-http":"^4.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"7fcb0c5fba79b0f9a737b089da10b430049b114a","bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"homepage":"https://github.com/sindresorhus/protocolify#readme","_id":"protocolify@4.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-fuAmPieJK9LpOcTFSVi2UaWWJcHEkLeJBaUk/w3epHXD/4E0FvaBeEUxgzoUCEPZcPfk0wp9ilFHvh/2E3n9Ig==","shasum":"f13646be9837039ba458164f5a6568e413e5cc14","tarball":"https://registry.npmjs.org/protocolify/-/protocolify-4.0.0.tgz","fileCount":5,"unpackedSize":4132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEbVfCRA9TVsSAnZWagAAXyIP/j4dm1aYIlL5k6m8m62D\nCR5FsOc/XDoNf+b0AgbnID9YRVs/i70EAF7eDg4xS5alMWsP7wNg6MRUnwI/\ndgcS7bGdQZ6qj96y0FERmzsULzYNTSlfgvHZYn84RtnGO+//L/6Ugu6Cdmbn\noPB7s80t6U6nOJH59suKF5nkv49fno18/o+V5K9JyR6l0G7C/uikh9zwAyxo\nPw1BY0nX6BN16TSXCiljGvBYaSCWEb5xYkPK3JaEDBE0ZDwJS60V1yJm2Y66\n31Y/bsKy5fVGzXhLr2+GdAUy6wg+y/eBy9QxmZ4dBYOmd8ppsA5crpLWl3tE\nB0zqzZDNUSneKiHDdO08QYtZLSPHGN7kj1jSXos9gVd2h1nbTU+Wdz+wVwJs\nPtwHkgJVr8tcnVMsFejub0XfoOPJ56ko7o/72MO84SdoNkTmCQWT3YHVk1YJ\nSr+UTYUWMgDybZdd2X0V03u9Dxd+EOVpSUjIGDk3xMyVai6KyIspGvRihJry\nmPtxDMPavI6FbJZkLCNIlYjUO1wiSvhd4DialxyJLVh/38LCFYrolLSNmXe0\n8QNcAYSO1GuR5gj1ggSiGx0O0xEV+DtgabUlbRkEnlZT1YG1U4myaVd7NLnA\nGG3ZHaqZ0NMxpvBKXLNnVDbLJ60II/pKH94j7SsgiSH2lNczomF05/k14HHl\neO1z\r\n=b6BE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDitjSMCbgpzqTJh1EVGHdXslAxiuGzisgTXglWk9zUGAiAPJpVNXOD3mQc+MyCjQTDYVCUdDttjmesRNHjORAl0xg=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/protocolify_4.0.0_1628550495596_0.6223938471043065"},"_hasShrinkwrap":false}},"readme":"# protocolify\n\n> Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths\n\nUseful when you want to accept either a local file or URL as argument in your CLI app.\n\n## Install\n\n```\n$ npm install protocolify\n```\n\n## Usage\n\n```js\nimport protocolify from 'protocolify';\n\nprotocolify('sindresorhus.com');\n//=> 'https://sindresorhus.com'\n\nprotocolify('localhost', {https: false});\n//=> 'http://localhost'\n\nprotocolify('https://sindresorhus.com');\n//=> 'https://sindresorhus.com'\n\n// If it exists on disk, it will be interpreted as a file and not a URL\nprotocolify('index.js');\n//=> 'file:///Users/sindresorhus/dev/protocolify/index.js'\n```\n\n## API\n\n### protocolify(urlOrFilePath, options?)\n\n#### urlOrFilePath\n\nType: `string`\n\nThe URL to prepend `https://` or file path to prepend `file://`.\n\n#### options\n\nType: `object`\n\n##### https\n\nType: `boolean`\\\nDefault: `true`\n\nPrepend `https://` instead of `http://` to URLs.\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-24T20:59:07.443Z","created":"2014-11-16T08:46:42.514Z","1.0.0":"2014-11-16T08:46:42.514Z","1.0.1":"2015-05-02T23:40:03.827Z","1.0.2":"2015-10-05T14:52:14.449Z","1.0.3":"2016-05-16T17:13:12.835Z","2.0.0":"2017-01-13T13:21:28.281Z","3.0.0":"2019-05-01T08:35:39.511Z","4.0.0":"2021-08-09T23:08:15.938Z"},"homepage":"https://github.com/sindresorhus/protocolify#readme","keywords":["protocol","scheme","url","uri","prepend","http","file","path"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/protocolify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/protocolify/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"bigstickcarpet":true,"antixrist":true,"huhgawz":true,"rocket0191":true}}