UNPKG

random-cat-img

Version:

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

6 lines (4 loc) 188 B
const getRandomCat = require('../index.js'); getRandomCat().then(data => console.log(data)); getRandomCat().then(console.log); // or shorter // Use data.message to get the image URL