node-wallpaper
TypeScript icon, indicating that this package has built-in type declarations

6.0.2 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 6.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 6.0.2
    2
  • 6.0.1
    1
  • 6.0.0
    1

Package Sidebar

Install

npm i node-wallpaper

Weekly Downloads

4

Version

6.0.2

License

GPL-3.0

Unpacked Size

117 kB

Total Files

56

Last publish

Collaborators

  • gergof