Skip to content

Commit

Permalink
add more to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
a7ul committed Oct 25, 2019
1 parent 2c6466f commit dd6730e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# nodegui-os-utils

A nodegui helper module which will contain OS specific native features which Qt doesnt support and hence requires native code in respective operting systems.

# Installation

```
npm install @nodegui/nodegui-os-utils
```

# Usage

```js
import { Dock } from "@nodegui/nodegui-os-utils";

console.log("Showing the Dock Icon on MacOS");
Dock.show();
console.log("Hiding the Dock Icon on MacOS");
Dock.hide();
```

# Supported APIs

## MacOS

- Dock
- `show()` - static method - Shows the dock icon of the nodegui app on macos. Noop on other platforms.
- `hide()` - static method - Hides the dock icon of the nodegui app on macos. Noop on other platforms.

# License

MIT
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nodegui-os-utils",
"name": "@nodegui/nodegui-os-utils",
"version": "1.0.0",
"description": "A NodeGui native plugin for managing macOS native apis",
"main": "dist/index.js",
Expand Down

0 comments on commit dd6730e

Please sign in to comment.