0.1.1 • Published 5 years ago

desktop-capture v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

desktop-capture

Capture a screenshot of the desktop as a base64 encoded string.

Note: This module only works for OS X.

Install

$ npm i -S desktop-capture

Usage

const capture = require('desktop-capture');

capture().then(b64 => {
	console.log(b64);
});
```

## Build

With NPM:

```bash
$ npm run build
// -> ./desktop-capture
```

With Swift:

```bash
$ swift build
// -> ./build/release/desktop-capture
```

## Test

With NPM:

```bash
$ npm t
```

With Swift:

```bash
$ swift test
```

## License

MIT © [Vu Tran](https://github.com/vutran)