Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 911 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 911 Bytes

Menubar.js

Create a Menubar app with Electron

Installation

npm i menubar.js

Setup

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, or ask a question on GitHub

Report feedback & bugs here

Like our work? Support us on Patreon