Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
pfp.lgbt-wrapper
Advanced tools
Readme
npm i pfp.lgbt-wrapper
Unofficial wrapper for pfp.lgbt!
Returns Promise<Object>
getFlags();
Returns Promise<Buffer>
getFlag(flag);
Returns Promise<Buffer>
Static
createStatic(
image, // The image to lgbtify. A Buffer or an image url
flag, // The Pride flag to add. A valid Pride flag
type, // The effect type. Any of circle | overlay | square | background - Defaults to circle
style, // The effect style. Any of solid | gradient - Defaults to solid
format, // The output format. Any of jpg | png - Defaults to png
alpha // The effect's alpha
);
Animated
createAnimated(
image,
flag,
type, // Any of circle | square - Defaults to circle
alpha
);
const PfPLGBT = require('pfp.lgbt-wrapper');
const fs = require('fs');
const pfp = new PfPLGBT();
async function example() {
pfp.getFlags().then(console.log);
await pfp.getFlag('pan').then(result => fs.writeFileSync('./panFlag.png', result));
pfp.createStatic(fs.readFileSync('./panFlag.png'), 'pride').then(result => fs.writeFileSync('./staticImage.png', result));
pfp.createAnimated(fs.readFileSync('./panFlag.png'), 'pride', 'square', 100).then(result => fs.writeFileSync('./animatedImage.gif', result));
}
example();
import PfPLGBT from 'pfp.lgbt-wrapper';
import * as fs from 'fs';
const pfp = new PfPLGBT();
async function example() {
pfp.getFlags().then(console.log);
await pfp.getFlag('pan').then(result => fs.writeFileSync('./panFlag.png', result));
pfp.createStatic(fs.readFileSync('./panFlag.png'), 'pride').then(result => fs.writeFileSync('./staticImage.png', result));
pfp.createAnimated(fs.readFileSync('./panFlag.png'), 'pride', 'square', 100).then(result => fs.writeFileSync('./animatedImage.gif', result));
}
example();
pfp.lgbt-wrapper, an unofficial wrapper for pfp.lgbt
Copyright (C) 2020 VenNeptury
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
FAQs
A pfp.lgbt Wrapper
The npm package pfp.lgbt-wrapper receives a total of 9 weekly downloads. As such, pfp.lgbt-wrapper popularity was classified as not popular.
We found that pfp.lgbt-wrapper 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.