Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
welcomer-gif
Advanced tools
yarn add welcomer-gif
Welcomer
:The use of the class Welcomer
(module).
Parameters | Type | Description |
---|---|---|
options | Object | welcome options |
setName | string | Set name of the user. |
setAvatar | string | Set avatar of the user string or Buffer. |
setDiscriminator | number | Set discriminator/tag of user. |
setBackground | string | Set background of the gif. |
setGIF | boolean | Set if the background you want to use is a gif or not. |
setBlur | number | Set the blur value if don't then don't use it. |
const axios = require('axios')
const Welcomer = require('welcomer-gif')
const { writeFile } = require('fs-extra')
const getBuffer = async (url) =>
(
await axios.get(url, {
responseType: 'arraybuffer',
})
).data
const welcomer = async () => {
const avatar = await getBuffer('https://telegra.ph/file/59952c903fdfb10b752b3.jpg')
const image = await new Welcomer()
.setBackground('https://i.pinimg.com/originals/07/28/dc/0728dc400eca09632215055ff003d8bf.gif')
.setGIF(true)
.setAvatar(avatar)
.setName('AlιAryαɴTech')
.setDiscriminator(1100)
.setBlur(2)
const buffer = await image.generate()
writeFile('buffer.gif', buffer, (err) => {
if (err) throw err
})
console.log('successful')
}
welcomer()
FAQs
Welcome animated gif using canvas
The npm package welcomer-gif receives a total of 139 weekly downloads. As such, welcomer-gif popularity was classified as not popular.
We found that welcomer-gif demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.