【文件属性】:
文件名称:phantom-check:使用 phantomjs 检查您的页面是否存在 javascript 错误、断开的链接
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-12 15:07:01
JavaScript
描述
phantom-check 将检查错误:
JavaScript 错误
404 错误(网址损坏)
401 错误(身份验证)
它将提供正确的退出代码以在 shell 脚本中使用
为什么?
wget,curl 等.. 没有得到 js 错误
seleniums/webdriver 没有得到断开的链接
安装
npm install -g phantom-check
用法
$ phantom-check http://google.be --ignore=http://somethirdparty.com
样本输出
Phantom is checking http://vlaanderen.be
Error:TypeError: instanceof called on an object with an invalid prototype property.
{"file":"
【文件预览】:
phantom-check-master
----trial()
--------index.js(2KB)
----README.md(2KB)
----.gitignore(14B)
----index.js(2KB)
----bin()
--------phantom-check(292B)
----package.json(425B)