page-exists:检查是否可以访问页面或返回错误代码

时间:2021-05-16 22:28:29
【文件属性】:
文件名称:page-exists:检查是否可以访问页面或返回错误代码
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-16 22:28:29
JavaScript 页面存在 检查是否可以访问页面或返回错误代码 安装 $ npm install --save page-exists 用法 const pageExists = require ( 'page-exists' ) ; pageExists ( 'https://httpstat.us/200' ) . then ( exists => console . log ( exists ) ) ; //prints true pageExists ( 'https://httpstat.us/404' . then ( exists => console . log ( exists ) ) ; //prints false pageExists . many ( [ 'https://httpstat.us/200' , 'https://httpstat.us/404' ,
【文件预览】:
page-exists-master
----.gitignore(914B)
----package.json(737B)
----.travis.yml(42B)
----LICENSE(1KB)
----index.js(598B)
----test.js(1KB)
----README.md(811B)

网友评论