getscreenshot.js 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/readme.md +5 -5
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -63,15 +63,15 @@ const fs = require('fs')
|
|
63
63
|
```ts
|
64
64
|
|
65
65
|
// Screenshot V1 (buffer)
|
66
|
-
var data = await screenshotV1('https://
|
67
|
-
fs.writeFileSync('vihanga.
|
66
|
+
var data = await screenshotV1('https://github.com/')
|
67
|
+
fs.writeFileSync('vihanga.png',data)
|
68
68
|
|
69
69
|
// Screenshot V2 (buffer)
|
70
|
-
var data = await screenshotV2('https://
|
71
|
-
fs.writeFileSync('vihanga.
|
70
|
+
var data = await screenshotV2('https://github.com/')
|
71
|
+
fs.writeFileSync('vihanga.png',data)
|
72
72
|
|
73
73
|
// Screenshot V3 (link)
|
74
|
-
var data = await screenshotV1('https://
|
74
|
+
var data = await screenshotV1('https://github.com/')
|
75
75
|
console.log(data)
|
76
76
|
```
|
77
77
|
|