4.0.4 • Published 3 years ago

giphy-search v4.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Installation

npm i giphy-search

Functions

FunctionDescription
searchGifreturns url of the gif, search gifs from name, the second argument is for randomly searching, for example: you want search the gif, and enter "toad" like a first argument. We understand, what lots of gifs include this name, so if you enter "true" like a second argument, function will returns the url of one gif which includes this name. (code example 1)
randomGifreturns the url of random gif. (code example 2)

Examples

Code example 1:

const { gifIt } = require('giphy-search')

let gif = new gifIt("your api key")
gif.randomGif().then((res) => {
    console.log(res)
})

Code example 2:

const { gifIt } = require('giphy-search')

let gif = new gifIt("your api key")
gif.searchGif("gif name", true).then((res) => {
    console.log(res)
})

Your api key you can get here: https://developers.giphy.com/

4.0.4

3 years ago

3.0.3

3 years ago

2.0.2

3 years ago