1.0.0 โ€ข Published 2 years ago

bablu v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

๐Ÿ›  Installation

$ npm install --save bablu

๐Ÿš€ Usage

const fs = require('fs')
const bablu = require('bablu')

const url = 'https://cdn.discordapp.com/emojis/891761238994976788.png';

(async () => {
    // Convert from url
    const imageBuffer = await bablu(url, '#F05454')
    fs.writeFileSync('emoji-red.png', imageBuffer)

    // Convert from buffer
    const image = fs.readFileSync('emoji.png')
    const imageBuffer2 = await bablu(image, '#FFC069')
    fs.writeFileSync('emoji-yellow.png', imageBuffer2)
})()

๐Ÿ“ฐ License

The Bablu project is released under the GNU 3.0. Developed & maintained By Darshan Patel.