{"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":{"integrity":"sha512-BLxfZh+m6UiAiCPZFJ4+vYoL7NrRs5XgCTRrjseATAggXhdZKKxn+JUNmuVYWY23bDHgaEHodxw8mnmtVEDtHw==","shasum":"3e724d58fd5867465b300bb9615009fa2f8ee3b6","tarball":"http://registry-npm.ywwl.com/prepend-http/download/prepend-http-3.0.1.tgz","fileCount":5,"unpackedSize":3634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyVlwCRA9TVsSAnZWagAAOEIP/2AsFUT+8sKp2RYOb9um\nndg0pYcLgRUDVBt58xtopRtRUiSz2lzkdtcD8gqviF/RjhgqryL7u39vuOtn\n6/zckSkz/B4+PH8jU6j7vjUr7adAycge5hs3M2xqSBYIBopfgP7dyb3Rkh9z\nNkjR2p7bURHVTOtEc3T+8iijkCRvJVg+3kkCFLP1YETN9tBeI2wsFiSMwVrH\nKwDOKJRvOqIDNFnCnWpSdqHF46GvhOTAa4kRUKPe+scXvpFj4P1/2St1CJt6\naSgtJpM1EUQFATWW07lKOunHOlJK56fvT5ct0Z2HlYQMK9H6P0u+VFzgqolf\nO1Uo/4fZ0H7KQarZHuNHWunlCQpDqUn3pbukv4dAQ2YoEuX4RQUYPVjwkwz+\n4k+naPBkCD08OdeI6nnxRk9x6fTbSjw4E8nqa7CDpL+zT78Um1Ptp2z34UFV\nmbhw6jLYZAyBtYMRtAcJQYyGpOuudlM1NJ4pCQMhdO7/HNYocrviXh2K8Dsf\nKOWTrCyFxOlhj+f4QTuC1sVeTT7wgYJ+dYYvYJ3o2tTHDK/ZX4uAX2jfeZy7\nj8YrIFwXN1IeTOlWPmz8BpHgUWYgpG38/oK4Ucoj/aC2Hp5I4aYZBCMcBiWs\nf3nZVSPWjy7ncYWy6+le/b697moIqw9tAddef7khQ3dMulJiKlE5j3bLGRNC\n72Q+\r\n=B+Hl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZDRt5/vjHQT+YaDtNUDQtZh2li2hmxJqcqQ0TTe1WLAIhAIg5MLSRVEUYqIu920o78MpbBmjhcJweSTiBxJfi4XAP"}],"size":1841,"noattachment":false,"key":"/prepend-http/-/prepend-http-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http_3.0.1_1556699503511_0.08232561543151862"},"_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":1556699503839,"_cnpm_publish_time":1556699503839,"dist-tags":{"latest":"4.0.0"}}