Socket
Socket
Sign inDemoInstall

wallpaper

Package Overview
Dependencies
1
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.4.0

9

lib/macos.js

@@ -7,3 +7,4 @@ 'use strict';

const execFile = pify(childProcess.execFile);
// binary source → https://github.com/sindresorhus/macos-wallpaper
// Binary source → https://github.com/sindresorhus/macos-wallpaper
const bin = path.join(__dirname, 'macos-wallpaper');

@@ -13,3 +14,3 @@

exports.set = imagePath => {
exports.set = (imagePath, opts) => {
if (typeof imagePath !== 'string') {

@@ -19,3 +20,5 @@ return Promise.reject(new TypeError('Expected a string'));

return execFile(bin, [path.resolve(imagePath)]);
opts = opts || {};
return execFile(bin, [path.resolve(imagePath), opts.scale]);
};

@@ -7,3 +7,4 @@ 'use strict';

const execFile = pify(childProcess.execFile);
// binary source → https://github.com/sindresorhus/win-wallpaper
// Binary source → https://github.com/sindresorhus/win-wallpaper
const bin = path.join(__dirname, 'win-wallpaper.exe');

@@ -10,0 +11,0 @@

{
"name": "wallpaper",
"version": "2.3.0",
"version": "2.4.0",
"description": "Get or set the desktop wallpaper",

@@ -33,4 +33,3 @@ "license": "MIT",

"picture",
"photo",
"image"
"photo"
],

@@ -37,0 +36,0 @@ "dependencies": {

@@ -37,3 +37,3 @@ # wallpaper [![Build Status](https://travis-ci.org/sindresorhus/wallpaper.svg?branch=master)](https://travis-ci.org/sindresorhus/wallpaper) [![Build status](https://ci.appveyor.com/api/projects/status/xhwaihmhhplh5d05/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/wallpaper/branch/master)

### .set(imagePath)
### .set(imagePath, [options])

@@ -48,3 +48,15 @@ Returns a promise.

#### options
Type: `Object`
##### scale
Type: `string`<br>
Values: `fill` `fit` `stretch` `center`<br>
Default: Current system setting
Scaling method. Only available on macOS.
## Related

@@ -51,0 +63,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc