Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
index.js | D | 12-May-2024 | 288 | 15 | 11 | |
license | D | 12-May-2024 | 1.1 KiB | 22 | 17 | |
package.json | D | 12-May-2024 | 1.6 KiB | 68 | 67 | |
readme.md | D | 12-May-2024 | 577 | 32 | 18 |
readme.md
1# prepend-http [](https://travis-ci.org/sindresorhus/prepend-http) 2 3> Prepend `http://` to humanized URLs like `todomvc.com` and `localhost` 4 5 6## Install 7 8``` 9$ npm install --save prepend-http 10``` 11 12 13## Usage 14 15```js 16const prependHttp = require('prepend-http'); 17 18prependHttp('todomvc.com'); 19//=> 'http://todomvc.com' 20 21prependHttp('localhost'); 22//=> 'http://localhost' 23 24prependHttp('http://todomvc.com'); 25//=> 'http://todomvc.com' 26``` 27 28 29## License 30 31MIT © [Sindre Sorhus](https://sindresorhus.com) 32