wallhaven
A library for searching Wallhaven.
Install
npm install wallhaven
Global Install
npm install -g wallhaven
If you install globally, you can use wallhaven CLI tool.
Usage
var wallhaven = ; var myOptions = term: '' categories: general: true anime: true people: true purity: sfw: true sketchy: false nsfw: false resolutions: sorting: 'random' page: 1; ;
CLI usage
Find wallhaven CLI tool path:
npm bin wallhaven
Set a random wallpaper:
wallhaven search ""sky"" -c=general -p=sfw -r=1920x1080+ -s=random -i=1 --set
Get search results as URLs:
wallhaven search ""sky"" --all