【文件属性】:
文件名称:use-https:确定是否需要通过 HTTPS 加载脚本
文件大小:29KB
文件格式:ZIP
更新时间:2021-06-06 12:13:45
grim-repo-ignore JavaScript
使用-https
确定是否需要通过 HTTPS 加载脚本以使页面保持安全。
安装
$ component install segmentio/use-https
例子
在https://example.com ...
var https = require ( 'use-https' ) ;
https ( ) ; // true
https ( '//site.com' ) ; // "https://site.com"
应用程序接口
使用Https()
返回是否需要通过 HTTPS 加载任何脚本以确保文档安全的Boolean 。
useHttps(agnosticUrl)
返回agnosticUrl (以//开头),并带有https:或http:作为协议。
执照
麻省理工学院
【文件预览】:
use-https-master
----.gitignore(16B)
----component.json(353B)
----test()
--------mocha.css(3KB)
--------tests.js(1KB)
--------index.html(338B)
--------mocha.js(108KB)
----History.md(245B)
----Readme.md(594B)
----package.json(341B)
----index.js(574B)
----Makefile(208B)