# url-capture

> Takes screenshots of the given URL.

Latest version **0.0.3** (published 2014-12-17) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install url-capture
pnpm add url-capture
yarn add url-capture
bun add url-capture
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-12-17 |
| First published | 2014-12-17 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ximo1984 |
| Maintainers | davidhernandez, ximo1984 |
| Keywords | casperjs, screenshots |

## Links

- npm: https://www.npmjs.com/package/url-capture
- Repository: git@github.com:ximo1984/url-capture
- Homepage: https://github.com/ximo1984/url-capture
- Issues: https://github.com/ximo1984/url-capture/issues
- npm.io page: https://npm.io/package/url-capture

## Recent versions

- 0.0.3 (latest) — 2014-12-17
- 0.0.2 (0.0.2) — 2014-12-17
- 0.0.1 — 2014-12-17

## README

URL-CAPTURE
===========

Takes a screenshot of the given URL. Supports image resizing and can wait until a selector is loaded. If that’s not enough, a wait can be added.

## Examples

```javascript
var capture = require('url-capture');

url = 'http://google.com';
file = 'google.png';
options = {
  width: 600,
  height: 400,
  wait: 3000, // miliseconds
  selector: 'body' // CSS selector
}
try {
  capture(url, file, options, function() {
    // Do something with the file.
  });
}
catch(error) {
  // Handle the error.
}
```

## Install

    npm install url-capture

You will need to have CasperJs installed globally:

    npm install -g casperjs

## License

GPLv3

---
_Source: https://npm.io/package/url-capture · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
