0.0.9 ā¢ Published 3 years ago
alphabcg v0.0.9
Quickly Convert any letter to image with random background
Install
npm i alphabcg
Usage
const alphabcg = require('alphabcg')
app.post('/', async(req, res) => {
const result = await alphabcg(req.body.letter)
<!-- It would return a buffer data -->
res.send(result)
})
Using alphabcg with cloudinary
const alphabcg = require('alphabcg')
app.post('/', async(req, res) => {
const option = {
cloud_name: process.env.CLOUD_NAME,
api_key: process.env.API_KEY,
api_secret: process.env.API_SECRET,
};
const result = await alphabcg(req.body.letter, options)
<!-- It would return a url -->
res.send(result)
})
Author
š¤ Bolaji Yusuf
- Website: http://bolajiyusuf.me/
- Twitter: @iambigb_
- Github: @bigb97
- LinkedIn: @https:\/\/www.linkedin.com\/in\/yusuf-bolaji-abdulwaheed-1a3a98114\/
Show your support
Give a āļø if this project helped you!