Skip to content

Minimalist non-interactive CLI random image downloader built with NodeJS

License

Notifications You must be signed in to change notification settings

estevaog3/randimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randimg

randimg is a Minimalist non-interactive CLI random image downloader built with NodeJS. It's powered by unsplash.

CLI Manual

Usage
  $ randimg DEST [OPTIONS...]

OPTIONS
  --query, -q  download random image according to query (default: wallpaper)
  --size, -s   image dimensions (width and height) in this format: 400x300 (default: 1920x1080)
  --number, -n  number of images to download (default: 1)
  --show-names  show file names of downloaded images (default is to don't show it)

EXAMPLE
  Downloads 10 random 'funny' images into ~/Pictures directory:
  $ randimg ~/Pictures -q funny -n 10

Usage

Pre requirements

  1. Create a unsplash developer account if you don't have already - don't worry, it's free :)
  2. After signing up, create an unsplash application

How to run

  1. Clone this repository
  2. Install dependencies:
yarn install
  1. Copy your unsplash app's ACCESS_KEY and replace ***** with it in this command:
mkdir src/secret && \
echo "module.exports.ACCESS_KEY = '*****';" > src/secret/unsplash.js
  1. That's it! You can now install it globally with yarn build or execute it without installing: yarn start

About

Minimalist non-interactive CLI random image downloader built with NodeJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published