{"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":{"integrity":"sha512-tpQz9Yi3mykelKNx9z8/vC2EIrcBvfAOOGI2k3iikTk2AfY007ScNmYluLxz0u/QlVprGJJd0w3rwsAYBmuKbg==","shasum":"6eaaf4e8ec17ef163fc9413e5ef12d8f037eb1c8","tarball":"http://registry-npm.ywwl.com/prepend-http/download/prepend-http-3.0.0.tgz","fileCount":5,"unpackedSize":3679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyT2gCRA9TVsSAnZWagAAU18P/3tuOosRp3JO/l4Ha1BN\nkjfJOHFpMic0tCTo17w8SyHuN6oBdoy2WDnAVoll/EYtTf1RcA78lS2EvxBr\nUQaZ46XVr6vx1PKJzxpMfl9eE9ifBjHRSguAXGMaCJE49nJ7PT7xt8VbUz93\nIUDXyetOgyRHmbF7gkSVl0GZ8V2k94gkmZcM04qCCVA3E5b6SB/lsr11grDB\nVlxDTUbgYw0VPIOy3jU5pwsfPRLQgwBXtzwWeXWPXyZAZxH6Kl8c8UtAQDrO\nZl22VPQNCFNtoKAzlXaNVDrjRMjPe33rQ8iaaNr1WRPiHYTLX3/O56OojS10\npUVj1jqPm/lNia/N8M7v7zhIv8GiqRrXPw71y8aQ+SQGPjCyjvTISsl66jbB\n0CI+PrHS33gjXaPr/S5WT7c24zsoN1uQnBXi5KQcAz68XG6rWBENssLaH966\nKLPpBPxXYoGiDMnCKT8ZgXKwbPRZenKdZdknly+Ovq2qfJ+LaD8oiCjvPEgZ\npNIUUaNShDNGzPnGB9VkpjnnNda3Tf8AUUsL2SASZOVkSBBBgoP17fOqP7I0\nndhz2TvbQxo8rcez7dH/wzmf9ajFkvGem+OG4h2179WedTcas/oCyhr/E66e\ncWj0apcbCtC8Eq0peUWZ8BBHc7kjwqJdDo7P6Bo4JNjTsaXQL2D4mdQAA0eT\ngEj2\r\n=YCQy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzr0DmqW11VBW23xp9Adn9IjsXDgUxNIL9tpZFkoimSAiBKZXoZl6lcdINZDMv3V8qLOc0OFlDGx4boEXkK5U0aoA=="}],"size":1845,"noattachment":false,"key":"/prepend-http/-/prepend-http-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http_3.0.0_1556692383899_0.16966220522460618"},"_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":1556692384002,"_cnpm_publish_time":1556692384002,"dist-tags":{"latest":"4.0.0"}}