Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nodegui/os-utils

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodegui/os-utils - npm Package Compare versions

Comparing version 1.0.2 to 1.1.2

dist/lib/info.d.ts

3

CMakeLists.txt

@@ -14,2 +14,3 @@ cmake_minimum_required(VERSION 3.1)

"${PROJECT_SOURCE_DIR}/src/cpp/AboutPanel/about_panel.mm"
"${PROJECT_SOURCE_DIR}/src/cpp/Info/info.mm"
)

@@ -20,2 +21,3 @@ else()

"${PROJECT_SOURCE_DIR}/src/cpp/AboutPanel/about_panel.cpp"
"${PROJECT_SOURCE_DIR}/src/cpp/Info/info.cpp"
)

@@ -29,2 +31,3 @@ endif()

"${PROJECT_SOURCE_DIR}/src/cpp/AboutPanel/about_panel_wrap.cpp"
"${PROJECT_SOURCE_DIR}/src/cpp/Info/info_wrap.cpp"
"${OS_SPECIFIC_SRC}"

@@ -31,0 +34,0 @@ )

export { Dock } from "./lib/dock";
export { AboutPanel } from "./lib/aboutPanel";
export { Info } from "./lib/info";

@@ -7,1 +7,3 @@ "use strict";

exports.AboutPanel = aboutPanel_1.AboutPanel;
var info_1 = require("./lib/info");
exports.Info = info_1.Info;

2

package.json
{
"name": "@nodegui/os-utils",
"version": "1.0.2",
"version": "1.1.2",
"description": "A helper module which contains OS specific native features.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -23,2 +23,3 @@ # os-utils

```
```js

@@ -33,2 +34,8 @@ import { AboutPanel } from "@nodegui/os-utils";

```js
import { Info } from "@nodegui/os-utils";
console.log("isDarkMode: " + Info.isDarkMode());
```
## Supported APIs

@@ -39,2 +46,3 @@

- Dock
- `show()` - static method - Shows the Dock icon on macOS. Does nothing on other platforms.

@@ -44,6 +52,10 @@ - `hide()` - static method - Hides the Dock icon on macOS. Does nothing on other platforms.

- AboutPanel
- `open(options?: object)` - static method - Opens the about panel on macOS. Does nothing on other platforms. `options` is optional and can contain the following strings: `name`, `version`, `applicationVersion`, and `copyright`. The default values are derived from `Info.plist`.
- Info
- `isDarkMode` - static method - Checks if the OS theme is dark mode in macOS. Does nothing on other platforms and returns false. Returns a boolean.
## License
MIT

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc