image-placeholder-unsplash

1.0.1 • Public • Published

Image Placeholder Unsplash

Getting Started

npm install image-placeholder-unsplash

Examples

var image = require('image-placeholder-unsplash')

var imageURL = image.getImage(580, 250)

console.log(imageURL) // result https://unsplash.it/580/250

Basic Usage

Just put your image size (width & height) and you'll get a placeholder.

getImage(width, height)

To get a square image, just put the size you want.

getImage(size)

Random image

Get a random image by adding 'random' in the option.

getImage(width, height, random)

Grayscale

Add 'g' in the option to greyscale the image.

getImage(width, height, g)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i image-placeholder-unsplash

      Weekly Downloads

      1

      Version

      1.0.1

      License

      ISC

      Last publish

      Collaborators

      • fkayo