gfyconvert

1.0.0 • Public • Published

GFYConvert

CI

REQUIRES NODEJS v8.0.0 OR HIGHER

About

GFYConvert - Convert source URLs to GFYcat
By Jack Baron
Copyright (c) Jack Baron 2017
Licensed under ISC License

Installation

Install the package using
npm i gfyconvert

To add it as a dependency, use
yarn add gfyconvert or npm i -S gfyconvert

Once installed, require the package with

const gfyconvert = require('gfyconvert')

Usage

Call the function with the URL you want to convert as a parameter. It will return a promise with the converted GFYcat URL when upload and conversion is complete.

Example Call

const url = 'https://a.pomf.cat/cshuuj.webm'
gfyconvert(url)
  .then(url => {
    // Use 'url' as the resulting GFYcat url
  })
  .catch(console.error)

Credits

  • Jack Baron (https://github.com/lolPants) - Author
  • Gus Caplan (https://github.com/devsnek) - Snekfetch
  • ogt (https://github.com/ogt) - valid-url

Readme

Keywords

Package Sidebar

Install

npm i gfyconvert

Weekly Downloads

4

Version

1.0.0

License

ISC

Last publish

Collaborators

  • lolpants