Skip to content

Commit 0833f19

Browse files
committed
Add usage example
1 parent 799ebc8 commit 0833f19

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ $ npm install browserless --save
2323
```js
2424
const browserless = require('browserless')
2525

26-
browserless('do something')
27-
//=> return something
26+
browserless
27+
.screenshot('http://example.com', { device: 'iPhone 6' })
28+
.then(tmpStream => {
29+
console.log(`your screenshot at ${tmpStream.path}`)
30+
tmpStream.cleanupSync()
31+
})
2832
```
2933

3034
## API

0 commit comments

Comments
 (0)