Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedi4ever/phantom-check
Check your page for javascript errors, broken links using phantomjs
https://github.com/jedi4ever/phantom-check
Last synced: about 1 month ago
JSON representation
Check your page for javascript errors, broken links using phantomjs
- Host: GitHub
- URL: https://github.com/jedi4ever/phantom-check
- Owner: jedi4ever
- Created: 2014-03-13T09:39:50.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-19T08:58:57.000Z (about 10 years ago)
- Last Synced: 2023-04-10T14:22:18.644Z (over 1 year ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
phantom-check will check errors:
- javascript errors
- 404 errors (broken url)
- 401 errors (authentication)it will give the correct exit codes to use in a shell script
# Why?
- wget,curl etc.. don't get the js errors
- seleniums/webdriver don't get the broken links# Installation
```
npm install -g phantom-check
```# Usage
```
$ phantom-check http://google.be --ignore=http://somethirdparty.com
```# Sample output
```
Phantom is checking http://vlaanderen.beError:TypeError: instanceof called on an object with an invalid prototype property.
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_DTCzlhuyzELRYiqSj0nVhjpUxPYgM1lHVFpKzqBgIBg.js","line":1414,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_DTCzlhuyzELRYiqSj0nVhjpUxPYgM1lHVFpKzqBgIBg.js","line":1423,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_DTCzlhuyzELRYiqSj0nVhjpUxPYgM1lHVFpKzqBgIBg.js","line":1479,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_DTCzlhuyzELRYiqSj0nVhjpUxPYgM1lHVFpKzqBgIBg.js","line":2079,"function":""}Error:TypeError: 'undefined' is not a function (evaluating '$(d.$publicationFull + ' aside nav ul', context).showMore({text: Drupal.t('Older publications')})')
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_DTCzlhuyzELRYiqSj0nVhjpUxPYgM1lHVFpKzqBgIBg.js","line":1352,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/VMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":163,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":4,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":165,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":499,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":4,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":4,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":4,"function":""}
{"file":"http://www.vlaanderen.be/sites/default/files/js/js_oCVMDTeSNt-_QxknevWyf6yO5OzmME3AhRz3ggZgNtg.js","line":4,"function":""}Page http://vlaanderen.be has errors
```