Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herber/nanosnap
Small service for getting screenshots of websites.
https://github.com/herber/nanosnap
chrome headless puppeteer screenshot website
Last synced: about 1 month ago
JSON representation
Small service for getting screenshots of websites.
- Host: GitHub
- URL: https://github.com/herber/nanosnap
- Owner: herber
- License: mit
- Created: 2018-06-11T08:40:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T06:01:03.000Z (about 6 years ago)
- Last Synced: 2024-09-29T19:20:59.615Z (about 2 months ago)
- Topics: chrome, headless, puppeteer, screenshot, website
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Nanosnap
A simple micorservice for taking screenshots of websites.
## Install
```
$ npm install nanosnap
```## Usage
### Start server
```
nanosnap
```### Take a screenshot
```
https:///?url=[&width=&height=&delay=]
```#### Options
| Name | Default | Description | Optional |
| ----- | ------- | ------------------------------- | -------- |
| url | `null` | The website's url | ✖ |
| width | `1200` | The screenshot's width | ✔ |
| height | `950` | The screenshot's height | ✔ |
| delay | `0` | Delay after the network is idle | ✔ |## CLI
```
$ npm install --global nanosnap
``````
$ nanosnapUsage
nanosnapOptions
--port The port you want nanosnap to listen to [Default: 3000]Examples
$ nanosnap --port 80
```## License
MIT © [Tobias Herber](http://tobihrbr.com)