{"_id":"prepend-http","_rev":"518173","name":"prepend-http","description":"Prepend `https://` to humanized URLs like sindresorhus.com and localhost","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-08-09T22:20:45.000Z","created":"2014-11-16T08:38:38.635Z","4.0.0":"2021-08-09T22:15:37.615Z","3.0.1":"2019-05-01T08:31:43.839Z","3.0.0":"2019-05-01T06:33:04.002Z","2.0.0":"2017-09-23T07:58:58.111Z","1.0.4":"2016-05-10T05:21:23.363Z","1.0.3":"2015-09-02T08:46:10.020Z","1.0.2":"2015-07-23T13:33:23.201Z","1.0.1":"2015-01-11T16:28:57.710Z","1.0.0":"2014-11-16T08:38:38.635Z"},"users":{"detj":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.git"},"versions":{"4.0.0":{"name":"prepend-http","version":"4.0.0","description":"Prepend `https://` to humanized URLs like sindresorhus.com and localhost","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.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":["prepend","protocol","scheme","url","http","https","humanized"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"02e643201a31d9ef8cc1e5f77f81416a7d22b745","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http#readme","_id":"prepend-http@4.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"shasum":"9fe6440f487962a8a0df3ad33f67cd2c0fc6a06f","size":1983,"noattachment":false,"key":"/prepend-http/-/prepend-http-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http_4.0.0_1628547337474_0.13441911348026214"},"_hasShrinkwrap":false,"publish_time":1628547337615,"_cnpm_publish_time":1628547337615},"3.0.1":{"name":"prepend-http","version":"3.0.1","description":"Prepend `https://` to humanized URLs like sindresorhus.com and localhost","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["prepend","protocol","scheme","url","uri","http","https","humanized"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"f4a79ceb9b51a622026e309e60bca987d4775cda","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http#readme","_id":"prepend-http@3.0.1","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3e724d58fd5867465b300bb9615009fa2f8ee3b6","size":1841,"noattachment":false,"key":"/prepend-http/-/prepend-http-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http_3.0.1_1556699503511_0.08232561543151862"},"_hasShrinkwrap":false,"publish_time":1556699503839,"_cnpm_publish_time":1556699503839},"3.0.0":{"name":"prepend-http","version":"3.0.0","description":"Prepend `http://` to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["prepend","protocol","scheme","url","uri","http","https","humanized"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"11b2cb6b843910796b0554737e01fc93440bb3c4","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http#readme","_id":"prepend-http@3.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6eaaf4e8ec17ef163fc9413e5ef12d8f037eb1c8","size":1845,"noattachment":false,"key":"/prepend-http/-/prepend-http-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http_3.0.0_1556692383899_0.16966220522460618"},"_hasShrinkwrap":false,"publish_time":1556692384002,"_cnpm_publish_time":1556692384002},"2.0.0":{"name":"prepend-http","version":"2.0.0","description":"Prepend `http://` to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["prepend","protocol","scheme","url","uri","http","https","humanized"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"040579fb1271df6232dd96a7600c9efb1510eb47","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http#readme","_id":"prepend-http@2.0.0","_shasum":"e92434bfa5ea8c19f41cdfd401d741a3c819d897","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e92434bfa5ea8c19f41cdfd401d741a3c819d897","size":1688,"noattachment":false,"key":"/prepend-http/-/prepend-http-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http-2.0.0.tgz_1506153538053_0.7665849386248738"},"directories":{},"publish_time":1506153538111,"_hasShrinkwrap":false,"_cnpm_publish_time":1506153538111},"1.0.4":{"name":"prepend-http","version":"1.0.4","description":"Prepend `http://` to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.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":["prepend","protocol","scheme","url","uri","http","https","humanized"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"4f2fbbcdd5daa579c062f9e54a99c8714ddc80d8","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http#readme","_id":"prepend-http@1.0.4","_shasum":"d4f4562b0ce3696e41ac52d0e002e57a635dc6dc","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d4f4562b0ce3696e41ac52d0e002e57a635dc6dc","size":1551,"noattachment":false,"key":"/prepend-http/-/prepend-http-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-1.0.4.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/prepend-http-1.0.4.tgz_1462857682803_0.5703588796313852"},"directories":{},"publish_time":1462857683363,"_cnpm_publish_time":1462857683363,"_hasShrinkwrap":false},"1.0.3":{"name":"prepend-http","version":"1.0.3","description":"Prepend http:// to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/prepend-http.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","https"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"9a6b04cdcd761d453d477daa2985720726b663d5","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http#readme","_id":"prepend-http@1.0.3","_shasum":"4d0d2b6f9efcf1190c23931325b4f3a9dba84869","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4d0d2b6f9efcf1190c23931325b4f3a9dba84869","size":1531,"noattachment":false,"key":"/prepend-http/-/prepend-http-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-1.0.3.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441183570020,"_cnpm_publish_time":1441183570020,"_hasShrinkwrap":false},"1.0.2":{"name":"prepend-http","version":"1.0.2","description":"Prepend http:// to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/prepend-http"},"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"],"devDependencies":{"ava":"0.0.4"},"gitHead":"f98628eedc069f33a0c4afcab74e072b72b6e51a","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http","_id":"prepend-http@1.0.2","_shasum":"4eefdfe40f99ac9256fdb8a1e5cb80ecddfc669e","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4eefdfe40f99ac9256fdb8a1e5cb80ecddfc669e","size":1527,"noattachment":false,"key":"/prepend-http/-/prepend-http-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-1.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1437658403201,"_cnpm_publish_time":1437658403201,"_hasShrinkwrap":false},"1.0.1":{"name":"prepend-http","version":"1.0.1","description":"Prepend http:// to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/prepend-http"},"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"],"devDependencies":{"ava":"0.0.4"},"gitHead":"b45c718ae57a9405178bfe98f050b35cdb006d0e","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http","_id":"prepend-http@1.0.1","_shasum":"5f13dad9a434fa4f346aa51cf03f3cea15fe4eb3","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"5f13dad9a434fa4f346aa51cf03f3cea15fe4eb3","size":1504,"noattachment":false,"key":"/prepend-http/-/prepend-http-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-1.0.1.tgz"},"directories":{},"publish_time":1420993737710,"_cnpm_publish_time":1420993737710,"_hasShrinkwrap":false},"1.0.0":{"name":"prepend-http","version":"1.0.0","description":"Prepend http:// to humanized URLs like todomvc.com and localhost","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/prepend-http"},"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"],"devDependencies":{"ava":"0.0.4"},"gitHead":"6e315c13456bfdbd93f5d79f42ca9e887b36f3c3","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"homepage":"https://github.com/sindresorhus/prepend-http","_id":"prepend-http@1.0.0","_shasum":"6a1593cab70b433bfa3f2bdddd4fe794f2aed27a","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"6a1593cab70b433bfa3f2bdddd4fe794f2aed27a","size":829,"noattachment":false,"key":"/prepend-http/-/prepend-http-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-http/download/prepend-http-1.0.0.tgz"},"directories":{},"publish_time":1416127118635,"_cnpm_publish_time":1416127118635,"_hasShrinkwrap":false}},"readme":"# prepend-http\n\n> Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`\n\n## Install\n\n```\n$ npm install prepend-http\n```\n\n## Usage\n\n```js\nimport prependHttp from 'prepend-http';\n\nprependHttp('sindresorhus.com');\n//=> 'https://sindresorhus.com'\n\nprependHttp('localhost', {https: false});\n//=> 'http://localhost'\n\nprependHttp('https://sindresorhus.com');\n//=> 'https://sindresorhus.com'\n```\n\n## API\n\n### prependHttp(url, options?)\n\n#### url\n\nType: `string`\n\nThe URL to prepend `https://` to.\n\n#### options\n\nType: `object`\n\n##### https\n\nType: `boolean`\\\nDefault: `true`\n\nPrepend `https://` instead of `http://`.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-prepend-http?utm_source=npm-prepend-http&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/prepend-http#readme","bugs":{"url":"https://github.com/sindresorhus/prepend-http/issues"},"license":"MIT"}