4.0.1 • Published 4 years ago

retrotext v4.0.1

Weekly downloads
10
License
ISC
Repository
github
Last release
4 years ago

📼 Retro Text

NPM version NPM downloads Build status Dependencies

Generate retro style text images using the PhotoFunia API

💾 Installation

The package is on the NPM registry as retrotext. Simply install it with your NPM client of choice.

❓ Compatibility

This module can be used in both the browser and Node.js. It targets ES2015 and newer.

🔧 Usage

First, import the module:

const RetroText = require('retrotext')
const { TextStyle, BackgroundStyle } = RetroText

RetroText is an ES6 class that can be manipulated to generate Retro Text images.

📝 Example

// Import the module
const RetroText = require('retrotext')
const { TextStyle, BackgroundStyle } = RetroText

// Set options
const text = new RetroText()
  .setLine1('Top')
  .setLine2('Middle')
  .setLine3('Bottom')
  .setBackgroundStyle(BackgroundStyle.PALM_CIRCLE)
  .setTextStyle(TextStyle.CHROME)

// Generate using API
let URL = await text.fetchURL()
let buffer = await text.fetchBuffer()
4.0.1

4 years ago

4.0.0

4 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago