1.0.1 • Published 5 years ago

image-sampler-cli v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Image Sampler

CLI helper for gettting a sample random image URL from Unsplash. You can get a sample image URL with the appropriate size you need.

Getting Started

Installing

npm install -g image-sampler

Size options

Predefined size options

You can get small, medium, large size sample image url with the predefined option.

// small size (400x300)
image-sampler -s
image-sampler -small

// medium size (800x600)
image-sampler -m
image-sampler -medium

// large size (1200x960)
image-sampler -l
image-sampler -large

Custom size option

You can get custom sized image with -c or -custom option

image-sampler -c 300x400
image-sampler -custom 300x400

option value should be formated as {width}x{height}

Built With

Authors

License

This project is licensed under the MIT License.