randimg
is a Minimalist non-interactive CLI random image downloader built with NodeJS. It's powered by unsplash.
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
- Create a unsplash developer account if you don't have already - don't worry, it's free :)
- After signing up, create an unsplash application
- Clone this repository
- Install dependencies:
yarn install
- 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
- That's it! You can now install it globally with
yarn build
or execute it without installing:yarn start