{"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":{"integrity":"sha512-s6SRDuOuRo7JXWh7115pmJdh53sX0Azuk/3znjVxSoD4GusXzzBDrLQgH0rspeHNs5f+Yihz7JIT3UBMwFEn6Q==","shasum":"9fe6440f487962a8a0df3ad33f67cd2c0fc6a06f","tarball":"http://registry-npm.ywwl.com/prepend-http/download/prepend-http-4.0.0.tgz","fileCount":5,"unpackedSize":3906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEakJCRA9TVsSAnZWagAAO1wQAI7GoKzklHRWxb7SMoDK\nArWYjv26SZQEZopT04COdy9L73YZohn8wkqDZmIJQvzw9LhPmZBRMjDG4Qjw\nn1WRPvXwl0oX2ixsXWN4o0gkaAutlVvKeKKMoNPoOm3rRbjVeLcyqnnlsfBd\nePhmiPVWlr4M5xceCV0KQV1WF1nQNifR2VREhOPzRDTSC881sibXhfiWUQLV\nT6JNOz2Dk0u/yDiQ7BpVTabmyqjaTN4jU4HeZi3ynm9cIx4ZRKPrQ5q58pbK\n5X/BKqGTmomORURZz2tZeLNr+eihpLtA10zYSJeqqrHhv2Nzx1EKXMmhbgFE\neSJbBxqsS+eQmgoAAgx03RcwRw3Bs4d/KZ0EVqsiV+iny+k6yr6YL3JB1PMh\n4hFpsTe5Nh4xowE9NASe5RoyqgKRO0/r0hGf3KN6DFcc3HDgsKuPJoUD2H3O\ncuHPQ8P8TnyS+Aq2NmtMNpo9dJHfWzZVcqtYoIISl/ymeL73Cp93PM9PNokF\nXEStkSO2VJq5+1fV+PQmhhtYQsgZusVxH7+WSp7JR69bl1JW5l1PWjiUIW1S\n+4Fc5q/Zkvd4Y3VJItJWxJ3ANP1bYAxwnMF7YYs3n6aRkTlB7S/fuy+/kwzU\nzPEGHQ3nI1fvf7dVm8Aq9WuoSsnuL511aORFLqEA3X8npaG/ftxu0vds3UX8\nZqXh\r\n=Ni/7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/Qe1/Iyi/Zg6HjDJik8yyVCkAxvj5mwZl4SZNA47SQQIhALVW08SEGZgqRJI02vJK1OXkHlZPUzijoPNl38mZxR97"}],"size":1983,"noattachment":false,"key":"/prepend-http/-/prepend-http-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http_4.0.0_1628547337474_0.13441911348026214"},"_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","publish_time":1628547337615,"_cnpm_publish_time":1628547337615,"dist-tags":{"latest":"4.0.0"}}