Skip to content

ran-j/node-wallpaper

 
 

Repository files navigation

node-wallpaper

Build Status NPM Version License Typescript Chat

Get wallpaper using nodejs and native addons.

Works on macOS, Linux and Windows.

Install

npm install node-wallpaper

Usage

import wallpaper from 'node-wallpaper';
// or:
// const wallpaper = require('node-wallpaper').default;

wallpaper.get().then(wallpaper => {
	console.log('The wallpaper is:', wallpaper);
});

API

.get()

Returns a Promise<string> with the path of the current desktop wallpaper.

Roadmap

[ ] Allow setting the wallpapers (only linux supports it so far)

About

Manage the desktop wallpaper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 77.2%
  • Objective-C++ 10.0%
  • C++ 9.3%
  • Python 3.5%