UNPKG

testeo-npm

Version:

> Un npm con la función de enviar gifs

30 lines (19 loc) 611 B
//CODIGO const fetch = require('node-fetch'); module.exports = { dog: async function () { let dataAPI = await fetch('https://dog.ceo/api/breeds/image/random') .then(res => res.json()); return dataAPI.message; }, fox: async function () { let dataAPI = await fetch('https://randomfox.ca/floof/') .then(res => res.json()); return dataAPI.image; } } //https://api.giphy.com/v1/gifs/search?q=hug&api_key=OLMuCf1D9PRzeTFFrGoseEN40f3QjZ45&limit=5%22 //NPM LOGIN //NPM VERSION //NPM VERSION <NEW VERSION> //NPM PUBLISH