Get wallpaper using nodejs and native addons.
Works on macOS, Linux and Windows.
npm install node-wallpaper
import wallpaper from 'node-wallpaper';
// or:
// const wallpaper = require('node-wallpaper').default;
wallpaper.get().then(wallpaper => {
console.log('The wallpaper is:', wallpaper);
});
Returns a Promise<string>
with the path of the current desktop wallpaper.
[ ] Allow setting the wallpapers (only linux supports it so far)