UNPKG
catproxy
Version:
latest (1.2.16)
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
a node proxy or host change tools
github.com/jianxcao/catproxy
jianxcao/catproxy
catproxy
/
_book
/
src
/
web
/
downloadcert.js
9 lines
(8 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{isRootCertExits, getRootCertPath}
from
'../cert/cert'
;
export
default
() =>
(
req, res, next
) =>
{
if
(
isRootCertExits
()) { res.
download
(
getRootCertPath
()); }
else
{
next
(
'没有根证书,请调用命令生成'
); } };