frinkiac-gif-generator

0.8.1 • Public • Published

Build Status

Frinkiac GIF Generator

An un-official package for auto-generating gifs from frinkiac.com, morbotron.com or masterofallscience.com based on a search term.

Installing

npm install --save frinkiac-gif-generator

Usage

This package uses frinkiac.com, morbotron.com or masterofallscience.com to generate a gif based on a piece of dialogue. At the moment it is quite basic and only returns one gif based on what Frinkiac/Morbotron/MOAS thinks is the best match to your dialogue search term. It returns the URL to the gif as a promise.

For example:

const gifGenerator = require('frinkiac-gif-generator');

gifGenerator('super nintendo chalmers')
    .then((gif) => {
        console.log(gif); // https://frinkiac.com/video/S10E07/MI9Rd6R0gNkiZnr2cFb_wA8vC3k=.gif
    })
    .catch(console.error);

As you can see above if no site is specified it defaults to Frinkiac, but to change site simply pass it through as the second argument, e.g:

gifGenerator('Robot house', 'morbotron')
    .then((gif) => {
        console.log(gif); // https://morbotron.com/video/S02E02/jLCY1cQwrS26ymv6djszozleXmY=.gif
    })
    .catch(console.error);

The available sites are:

  • frinkiac - frinkiac.com
  • morbotron - morbotron.com
  • moas - masterofallscience.com

License

ISC © Sammy Griffiths

Package Sidebar

Install

npm i frinkiac-gif-generator

Weekly Downloads

1

Version

0.8.1

License

ISC

Unpacked Size

26.8 kB

Total Files

11

Last publish

Collaborators

  • that_griff