{"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","tarball":"http://registry-npm.ywwl.com/prepend-http/download/prepend-http-2.0.0.tgz","integrity":"sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+8GklaUuU+6bGF59R8dxCkZpsieNYOrL1gHBBHTBF3AiA8MY3kg99gAlh05S7u7S/sExpQCUOshajrt3BOwbuwLA=="}],"size":1688,"noattachment":false,"key":"/prepend-http/-/prepend-http-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-http-2.0.0.tgz_1506153538053_0.7665849386248738"},"directories":{},"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":1506153538111,"_cnpm_publish_time":1506153538111,"dist-tags":{"latest":"4.0.0"}}