random-img
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Random Img Travis CI Build Status

Get a random Unsplash image.

NPM Badge

Install

npm install random-img

Usage

const randomImg = require(".");
const fs = require("fs").promises;
 
(async () => {
    const image = await randomImg();
    await fs.writeFile("file.jpg", Buffer.from(image));
})()

API

randomImg()

Package Sidebar

Install

npm i random-img

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.05 kB

Total Files

6

Last publish

Collaborators

  • richienb