New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

text-meme

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-meme

Generate text meme

latest
Source
npmnpm
Version
2.3.0
Version published
Maintainers
1
Created
Source

text-meme Build Status

Generate text meme

Install

$ npm install --save text-meme

Usage

const textMeme = require('text-meme');

textMeme('unicorns ❤️').then(function (filename) {
    console.log(filename);
});
//=> 'generated text-meme > filename.gif'

textMeme(input, {delay: 600, filename: 'quote.gif', background: '#4f656d'}).then(function (filename) {
    console.log(filename);
});
//=> 'generated text-meme > quote.gif'

API

textMeme(input, [options])

input

Type: string

Don't forget to be awesome.

options

delay

Type: integer
Default: 500

Frame delay.

background

Type: string
Default: #000000

Image's background color in hex.

fontcolor

Type: string
Default: #ffffff

Font's color in hex.

filename

Type: string
Default: meme-randomInt

Expected name of the file (with file extension - .gif).

fontsize

Type: integer
Default: 50

Font's size.

imagesize

Type: integer Default: 600

Image's size in px (Height = Width = imagesize).

dest

Type: string Default: ''

Destination path where you want image to be generated.

  • text-meme-cli - CLI for this module

Note

This module uses canvas module as dependency which requires Cairo check here how to install it.

License

MIT © beatfreaker

Keywords

ext

FAQs

Package last updated on 03 Feb 2016

Did you know?

Socket

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.

Install

Related posts