Share your code.
gifufy - Converts movies to GIFs with ffmpeg, imagemagick and gifsicle
This is a wrapper for external programs to do the actual conversion.
$ npm install gifufy -g
Installation script will try to detect for required commands (ffmpeg and gifsicle), install those for example with Homebrew.