UNPKG

random-cat-img

Version:

An npm module that provides random cat images. Fast and reliable.

10 lines (7 loc) 239 B
const getRandomCat = require('../index.js'); (async () => { console.time('getRandomCat'); const data = await getRandomCat(); console.log(data); // Use data.message to get the image URL console.timeEnd('getRandomCat'); })();