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

4.0.6 • Public • Published

Random picture

Testing Status Badge

NPM package: https://www.npmjs.com/package/random-picture

Git repo: https://gitlab.com/ap3k/node_modules/random-picture

Installation

With NPM

npm install random-picture --save

With Yarn

yarn add random-picture

Usage

Read the Source Luke!

Get random image

const { RandomPicture } = require('random-picture')

const image = await randomPicture()
// image
interface ImageObject {
  url: string
  author?: string
  width?: number
  height?: number
}
// Example
// {
//   url: 'https://picsum.photos/id/827/3695/5543.jpg',
//   author: 'kazuend',
//   width: 3695,
//   height: 5543
// }

Package Sidebar

Install

npm i random-picture

Weekly Downloads

18

Version

4.0.6

License

ISC

Unpacked Size

6.66 kB

Total Files

11

Last publish

Collaborators

  • mcsneaky