
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
A powerful Node.js library for creating memes, image effects, and funny visuals with ease.
MemeForge is a powerful and flexible meme generation library using Node.js and Canvas. It provides several generators for creating classic memes, demotivators, and images with quotes from great people.
Install the library via npm:
npm install memeforge
Example of using ClassicMemeGenerator
:
import { ClassicMemeGenerator } from 'memeforge';
const meme = new ClassicMemeGenerator('path/to/image.jpg');
(async () => {
await meme.generate('Top text', 'Bottom text');
meme.saveToFile("output.png");
})();
Example of using DemotivatorGenerator
:
import { DemotivatorGenerator } from 'memeforge';
const demotivator = new DemotivatorGenerator('path/to/image.jpg');
(async () => {
await demotivator.generate('Title', 'Subtitle');
demotivator.saveToFile("output.png");
})();
Example of using GreatPeopleQuoteGenerator
:
import { GreatPeopleQuoteGenerator } from 'memeforge';
const quoteImage = new GreatPeopleQuoteGenerator('path/to/avatar.jpg');
(async () => {
await quoteImage.generate('Title', 'Quote', 'Author');
quoteImage.saveToFile("output.png");
})();
Each generator supports font settings via the FontSettings
object. Example:
import { FontSettings } from 'memeforge';
const fontSettings = new FontSettings(
'Arial', // Font
40, // Font size
'italic', // Font style (normal, italic, bold, etc.)
'yellow', // Text color
'red', // Border color
5 // Border thickness
);
These settings can be passed to the generator constructor:
const meme = new ClassicMemeGenerator('path/to/image.jpg', fontSettings);
MemeForge is distributed under the MIT license. See the LICENSE file for details.
Create memes quickly and easily with MemeForge!
FAQs
A powerful Node.js library for creating memes, image effects, and funny visuals with ease.
The npm package memeforge receives a total of 4 weekly downloads. As such, memeforge popularity was classified as not popular.
We found that memeforge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.