frinkiac-gif-generator

Generate Simpsons gifs based on a search term from frinkiac.com

Usage no npm install needed!

<script type="module">
  import frinkiacGifGenerator from 'https://cdn.skypack.dev/frinkiac-gif-generator';
</script>

README

Build Status

Frinkiac GIF Generator

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

Installing

npm install --save frinkiac-gif-generator

Usage

This package uses frinkiac.com or morbotron.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 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);

License

ISC © Sammy Griffiths