Determine whether scripts need to be loaded over HTTPS for the page to remain secure.
$ component install segmentio/use-https
At https://example.com
...
var https = require('use-https');
https(); // true
https('//site.com'); // "https://site.com"
Return a Boolean
of whether you need to load any scripts over HTTPS to keep the document secure.
Return the agnosticUrl
(starts with //
) with either https:
or http:
prepended as the protocol.
MIT