1.0.0 • Published 7 years ago
gfyconvert v1.0.0
GFYConvert
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 usingnpm i gfyconvert
To add it as a dependency, useyarn 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