https://github.com/glavin001/pageshot
Take screenshots triggered by browser-side JavaScript.
https://github.com/glavin001/pageshot
Last synced: about 2 months ago
JSON representation
Take screenshots triggered by browser-side JavaScript.
- Host: GitHub
- URL: https://github.com/glavin001/pageshot
- Owner: Glavin001
- License: mit
- Created: 2014-05-26T01:12:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-06T06:40:05.000Z (almost 11 years ago)
- Last Synced: 2025-03-07T10:04:17.863Z (2 months ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Pageshot](https://github.com/Glavin001/pageshot) [](http://travis-ci.org/Glavin001/pageshot)
> Take screenshots triggered by browser-side JavaScript.
## Getting Started
Install the module with: `npm install -g pageshot`
## Documentation
### CLI
```bash
npm install -g pageshot
``````bash
pageshot --helpUsage: pageshot --url --conf --output
Options:
-h, --help output usage information
-V, --version output the version number
--url open URL
--conf inject configuration script.
--output output directory
--width viewportSize width in pixels.
--height viewportSize height in pixels.
```### Developer API
```bash
npm install --save-dev pageshot
```## Examples
See [test/](test/) directory
## Contributing
Clone and run the following demo:
### Start Simply HTTP Server
```bash
cd temp/
python -m SimpleHTTPServer
```### Try out the CLI for yourself
```bash
./cli.js --url http://localhost:8000/index.html --conf test/index.js --output temp/
```Now look in your `temp/` directory and see all of the generated screenshots.
## Release History
- 0.1.0 - First working version for CLI and developer API with complete Unit Tests.
## License
Copyright (c) 2014 [Glavin Wiechert](https://github.com/Glavin001).
Licensed under the MIT license.