Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed May 15, 2018
1 parent 0cb88b9 commit 6951415
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions example.js
Expand Up @@ -2,7 +2,11 @@ const Screenshot = require('.')
const fs = require('fs')
const { join } = require('path')

new Screenshot('http://ghub.io/').width(800).height(600).capture().then(img => {
fs.writeFileSync(join(__dirname, '/example.png'), img)
console.log('open example.png')
})
new Screenshot('http://ghub.io/')
.width(800)
.height(600)
.capture()
.then(img => {
fs.writeFileSync(join(__dirname, '/example.png'), img)
console.log('open example.png')
})

0 comments on commit 6951415

Please sign in to comment.