prepend-http-extra
Same as
prepend-http
but handles the case when starts with//
, like CDNs.
Install
npm i prepend-http-extra --save
Usage
For more use-cases see the tests
const prepend = // => 'https://foo.com' // => 'http://bar.com' // => 'http://baz.com' // => 'http://qux.com' // => '/abs.com' // => './rel.com' // => '../par.com'
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.