ranwallpaperup
v0.6.0
Published
Get a random wallpaper from wallpaperup.com
Downloads
1
Maintainers
Readme
ranWallpaperUp
A node module for get a random wallpaper from wallpaperup.com
Install
npm install ranwallpaperup --save
Usage
const ranWallpaperUp = require('ranwallpaperup')
var resolutionX = 1920; // optional
var resolutionY = 1080; // optional
ranWallpaperUp.random(resolutionX, resolutionY).then(wallpaper => {
var id = wallpaper.id;
var resolution = wallpaper.resolution;
var thumb_url = wallpaper.thumb_url;
var url = wallpaper.url;
console.log(wallpaper);
});