1.0.8-2 • Published 5 years ago

brains-api v1.0.8-2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Brains API

An API that generates the "Expanding Brain" meme image

API

Docs

You can find the official docs here

Example

// Import
const BrainMeme = require('brains-api');

// OPTIONAL for saving the Buffer onto the hard drive
const fs = require('fs');

// Set the strings
let strings = ["who", "whom", "whom'st", "whom'st'd"]

// Create a new instance of the meme
// (here we use destructuring)
let meme = new BrainMeme(...strings)

// Add a new string to it
meme.addString("whom'st'd've")

// Generate the Buffer from the
// image (it's a PNG buffer)
meme.build().then(buffer => {
  var wstream = fs.createWriteStream('./meme.png');
  wstream.write(buffer)
  wstream.end()
})

Contributing

I'm looking for a better template (10-images); if you can provide me one, contact me: Samplasion™#7901 on Discord

1.0.8-2

5 years ago

1.0.8-1

5 years ago

1.0.8

5 years ago

1.0.7-1

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago