1.0.4 • Published 10 months ago

doomtext v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

DooMTexT

Generate DooM style text in node.js

Installation

npm i doomtext

Usage

The doomtext package exposes a class, DooMTexT, which itself exposes the static method, generate.

You will need to pass a font name, and the text you want to create to DooMTexT.generate()

The font you pass to the the generate method MUST by one of the fonts in font list below.

Sample Code

import { DooMTexT } from 'doomtext'
import { writeFileSync } from 'fs'

// Set the font. It must be a font from the font list.
const font = "ZD2012"
const myText = "Rip and tear. Until it is done!"

// create the image, you can also use DoomText.generate()
// this will return an image buffer
const myDoomText = DooMTexT.generate(font, myText)

// save the file
writeFileSync(myText + '.png', myDoomText)

Font list

04FONTOK

APOS_BOK

DOOM93_2

GRGW_LBO

JENOBIG

MINECSL2

Q2SMFONK

STAT_LWR

STATBLWS

TORMENTK

ZD2012

1.0.4

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago