desktop-capture
v0.1.1
Published
A description of this package.
Downloads
45
Readme
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)