# yg-canvas

> simple welcome

Latest version **1.1.1** (published 2022-04-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install yg-canvas
pnpm add yg-canvas
yarn add yg-canvas
bun add yg-canvas
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-04-06 |
| First published | 2022-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 673.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yogi |
| Maintainers | ypraseyo |
| Keywords | welcome, welcome-discord, whatsapp |

## Links

- npm: https://www.npmjs.com/package/yg-canvas
- Repository: https://github.com/yogiprasetya-09/yg-canvas
- Homepage: https://github.com/yogiprasetya-09/yg-canvas#readme
- Issues: https://github.com/yogiprasetya-09/yg-canvas/issues
- npm.io page: https://npm.io/package/yg-canvas

## Dependencies (1)

- [canvas](https://npm.io/package/canvas.md) ^2.9.1

## Recent versions

- 1.1.1 (latest) — 2022-04-06
- 1.1.0 — 2022-04-04
- 1.0.10 — 2022-04-04
- 1.0.9 — 2022-04-04
- 1.0.8 — 2022-03-28
- 1.0.7 — 2022-03-28
- 1.0.6 — 2022-03-28
- 1.0.5 — 2022-03-28
- 1.0.4 — 2022-03-28

## README

##  installation 
```bash
$ npm i yg-canvas
```

## welcome
``` js
const yg-canvas = require("yg-canvas")
const fs = require("fs")

async function await() {
const welcome = await new yg-canvas.welcome()
.setProfile("https://raw.githubusercontent.com/squad-404/knights-canvas/main/assets/img/default-avatar.png")
.setName("yogi prasetya")
.setBg("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLn5-nn4-7EOA0THMNo9yaRXKegd28AAZ86ZUWgnQC6Ew6b8nrYzXsJITC&s=10")
.setMember("3")
.toAttachment();
return welcome
}

await().then((data) => {
fs.writeFileSync('out.svg', data.toBuffer())
})
```
#### result
<img src="https://telegra.ph/file/69cbbf0a637da88afd137.jpg" height="160"></img>
</details>

## goodbye
``` js
const yg = require("yg-canvas")
const fs = require("fs")

//async await
async function await() {
const goodbye = await new yg.goodbye()
.setProfile("https://raw.githubusercontent.com/squad-404/knights-canvas/main/assets/img/default-avatar.png")
.setName("yogi prasetya")
.setBg("linkbg")
.setMember("3")
.startGoodbye();
return goodbye
}

//start && saving to svg
await().then((data) => {
fs.writeFileSync('out.svg', data.toBuffer())
})
```

#### result
<img src="https://telegra.ph/file/91f1a85c6921d51b50c94.jpg" height="160"></img>
</details>

## Thanks to
##### refrence for canvas
* [`squad 404 team`](https://github.com/squad-404)

##### request && report bug
* [`whatsapp`](https://wa.me/62895613293360)

---
_Source: https://npm.io/package/yg-canvas · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
