Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Giphy API made simple.
A node implementation of Giphy API requests. Check GiphyApi for more info.
npm install --save apigiphy
var giphy = require('apigiphy');
giphy = giphy({api_key:YOUR_GIPHY_API_KEY});
giphy.random({tag:"flip the table"})
.then(function(response){
console.log(response.data.image_original_url);
// http://s3.amazonaws.com/giphymedia/media/2jlDkaipGfgGc/200_d.gif
}, function(error){
console.log(error);
});
.search({
q: q, // search query term or phrase
limit: limit, // (optional) number of results to return, maximum 100. Default 25
offset: offset, // (optional) results offset, defaults to 0
rating: rating // limit results to those rated (y,g, pg, pg-13 or r).,
stickers: false // (optional) set to true to search stickers api instead of gifs api. Default false
}).then(success, error);
.random({
tag: tag, // the GIF tag to limit randomness by
rating: rating // limit results to those rated (y,g, pg, pg-13 or r).
stickers: false, // (optional) set to true to search stickers api instead of gifs api. Default false
}).then(success, error);
.trending({
limit: limit, // (optional) number of results to return, maximum 100. Default 25
rating: rating, // limit results to those rated (y,g, pg, pg-13 or r).
stickers: false // (optional) set to true to search stickers api instead of gifs api. Default false
}).then(success, error);
Run the example
git clone https://github.com/Urucas/apigiphy.git && cd apigiphy
make clean && make
node example/simple.js
FAQs
Giphy API made simple
The npm package apigiphy receives a total of 21 weekly downloads. As such, apigiphy popularity was classified as not popular.
We found that apigiphy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.