electron-clipboard-ex
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -63,1 +63,6 @@ /** | ||
export function putImage(imagePath: string): Promise<boolean>; | ||
/** | ||
* @returns {boolean} If clipboard has an image in it. | ||
*/ | ||
export function hasImage(): boolean; |
@@ -12,2 +12,3 @@ const {promisify} = require('util'); | ||
putImageAsync, | ||
hasImage, | ||
} = require('bindings')(); | ||
@@ -25,2 +26,3 @@ | ||
putImage: promisify(putImageAsync), | ||
hasImage, | ||
}; |
{ | ||
"name": "electron-clipboard-ex", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Extended electron.js clipboard module.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -58,3 +58,9 @@ # electron-clipboard-ex | ||
Check if clipboard has an image in it: | ||
```javascript | ||
const clipboardEx = require('electron-clipboard-ex'); | ||
clipboardEx.hasImage(); | ||
``` | ||
## Operating system support | ||
This library supports Windows and macOS. Linux is currently not supported, feel free to open a pull request if you need it. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26203
83
66