<p align="center">
  <a href="https://www.npmjs.com/package/getscreenshot.js" rel="noopener">
 <img width=100px height=100px src="https://play-lh.googleusercontent.com/_hNqSzAVIx5jNvxATP3V5grf5lBMvHSZ5IqbyHJA_wHbS2lGXVntocuokRPaOs0D9A" alt="VihangaYT NPMs"></a>
</p>

<h2 align="center">WEB ScreenShot</h2>

<div align="center">

[![Status](https://img.shields.io/badge/status-active-success.svg)]()
[![GitHub Issues](https://img.shields.io/github/issues/SL-CODE-LORDS/Web-Screenshot.svg)](https://github.com/SL-CODE-LORDS/Web-Screenshot/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/SL-CODE-LORDS/Web-Screenshot.svg)](https://github.com/SL-CODE-LORDS/Web-Screenshot/pulls)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)

</div>

---

<p align="center"> takes a screenshot of a website or web page and saves it as a image file.
    <br> 
</p>

## 📝 Table of Contents

- [About](#about)
- [Getting Started](#getting_started)
- [Usage](#usage)
- [Owner](https://vihanga.is-a.dev/)
- [Apis](https://vihangayt.is-a.dev/)

## 🧐 About <a name = "about"></a>

This project takes a screenshot of a website or web page and saves it as a image file. The screenshot can be taken of the entire page or of a specific region.

## 🏁 Getting Started <a name = "getting_started"></a>

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes

### Installing


```sh
yarn add getscreenshot.js
```

or

```sh
npm i getscreenshot.js
```

## 🎈 Usage <a name="usage"></a>

```ts
const {
  screenshotV1, // Buffer
  screenshotV2, // Buffer
  screenshotV3 // Link
} = require('getscreenshot.js')
const fs = require('fs')
```
## Screenshot
```ts

// Screenshot V1 (buffer)
var data = await screenshotV1('https://github.com/')
fs.writeFileSync('vihanga.png',data)

// Screenshot V2 (buffer)
var data = await screenshotV2('https://github.com/')
fs.writeFileSync('vihanga.png',data)

// Screenshot V3 (link)
var data = await screenshotV1('https://github.com/')
console.log(data)
```

## ✍️ Authors <a name = "authors"></a>

- [@vihangayt0](https://github.com/vihangayt0) Project Author