getscreenshot.js 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|