https://github.com/coolstone-tech/menubar.js
Create a Menubar app with Electron
https://github.com/coolstone-tech/menubar.js
Last synced: 2 months ago
JSON representation
Create a Menubar app with Electron
- Host: GitHub
- URL: https://github.com/coolstone-tech/menubar.js
- Owner: coolstone-tech
- License: mit
- Created: 2023-07-31T18:59:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T19:22:39.000Z (almost 3 years ago)
- Last Synced: 2025-09-06T09:28:34.475Z (10 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Menubar.js
Create a Menubar app with Electron
## Installation
[`npm i menubar.js`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
## Setup
```js
const menubar = require('menubar.js');
menubar({ /* Config, passed to BrowserWindow */ }, './path/to/tray/icon', 'mode').then(menubar_app => {
// menubar_app.app - Electron app instance
// menubar_app.tray - Electron Tray instance
// menubar_app.window - Electron Window instance
// menubar_app.positioner - Electron Positioner instance
})
```
> Set mode to "detach" to detach the window from the tray icon.
## Other info
Get more in-depth help on [Discord](https://discord.gg/nzTmfZ8), or ask a question on [GitHub](https://github.com/coolstone-tech/menubar.js/discussions)
Report feedback & bugs [here](https://github.com/coolstone-tech/menubar.js/issues)
Like our work? [Support us on Patreon](https://www.patreon.com/coolstone)