https://github.com/awinterman/ghostface
evaluate js in a phantomjs context.
https://github.com/awinterman/ghostface
Last synced: 18 days ago
JSON representation
evaluate js in a phantomjs context.
- Host: GitHub
- URL: https://github.com/awinterman/ghostface
- Owner: AWinterman
- License: apache-2.0
- Created: 2014-12-23T20:57:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-23T21:34:58.000Z (over 11 years ago)
- Last Synced: 2025-03-01T06:27:02.790Z (over 1 year ago)
- Language: JavaScript
- Size: 250 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NOT PUBLISH/FUNCTIONAL (yet)
# Ghostface
Like [jsdom-eval](https://github.com/hayes/jsdom-eval) but for phantomjs.
## Usage:
```bash
ghostface --html ./optional.html ./my.js
```
or
```bash
cat ./my.js | ghostface --html ./optional.html
```
The specified js gets inserted into an html file which is delivered to phantom
when it opens a page. It gets inserted at the bottom of the body, no matter
what else is in the file. This allows you include other scripts if you need to.