3.2.1 • Published 3 years ago
tanjiro-canvas v3.2.1
Installation
$ npm install tanjiro-canvas
Example Rank Up
const tanjiro = require("tanjiro-canvas");
const fs = require('fs-extra');
const image = await new tanjiro.RankUp()
.setAvatar("https://i.postimg.cc/HnkjqLqd/1.jpg")
.toAttachment();
data = image.toBuffer();
await fs.writeFileSync(__dirname +'/cache/rankup.png', data)
Rank Up
Credits
Remake by Tanjiro Senpai
License
Tanjiro Canvas is freely distributable under the terms of the MIT license.